コード例 #1
0
 public ProjetcUser Update(ProjetcUser toUpdate)
 {
     try {
         var currentEntity = rep.GetSingle(toUpdate.Id);
         currentEntity.Responsavel        = toUpdate.Responsavel;
         currentEntity.UserProjectEndDate = toUpdate.UserProjectEndDate;
         rep.Update(currentEntity);
         rep.Save();
         return(currentEntity);
     }
     catch {
         return(null);
     }
 }