Presentation model (optional view model)

 Can be stored in Session or in ViewState (see base properties).

[Serializable]
public class AcceptRejectPresentationModel : PresentationModelBase
{
    private static ICustomPermissionsService PermissionService
    {
        get { return ServiceProvider.GetInstance<ICustomPermissionsService>(); }
    }
 
    public string CurrentEmployeeName { getset; }

    public DateTime CurrentEmployeeBirthDate { getset; }      

    public void AcceptCurrentEmployee(string comment)
    {

        (...)
    }
}

Last edited Apr 28, 2011 at 10:58 AM by Extreme, version 3

Comments

No comments yet.