Пример #1
0
 private void Update(int projectId, [Inject] IAssignmentDal dal)
 {
     using (BypassPropertyChecks)
     {
         var item = dal.Fetch(projectId, ResourceId);
         item.Assigned    = ReadProperty(AssignedProperty);
         item.RoleId      = Role;
         item.LastChanged = TimeStamp;
         dal.Update(item);
         TimeStamp = item.LastChanged;
     }
 }
Пример #2
0
        private void Fetch(int projectId, int resourceId, [Inject] IAssignmentDal dal, [Inject] IResourceDal rdal)
        {
            var data = dal.Fetch(projectId, resourceId);

            Fetch(data, rdal);
        }