Ejemplo n.º 1
0
 public void OnPropertySaving(string propertyName, Services.IPermissionsBase permissions)
 {
     switch (propertyName)
     {
     case "DeceasedDate":
         if (!permissions.CanChangeDeceasedDate)
         {
             throw new PropertyChangeDeniedException();
         }
         break;
     }
     //if (propertyName.Equals(this.GetPropertyInfo(f => f.GfHours).Name))
     //{
     //	if (!permissions.CanChangeGfHours)
     //	{
     //		throw new PropertyChangeDeniedException();
     //	}
     //}
 }
Ejemplo n.º 2
0
 public DafRepository(Services.IPermissionsBase Permissions, ccEntities db)
 {
     this.Permissions = Permissions;
     this.db          = db;
 }