Example #1
0
 public void AddTeamMemberFeedback(WorkItem workItem, WorkFeedback feedback, int teamMemberId)
 {
     try
     {
         var teamMemberFeedbackRow = Db.Set <WorkItemTeam>().Single(it => it.ExecutorId == teamMemberId && it.WorkItemId == workItem.Id);
         teamMemberFeedbackRow.ExecutorFeedback = feedback;
         Db.SaveChanges();
     }
     catch (Exception ex)
     {
         LogEventManager.Logger.Error(ex.Message, ex);
         throw;
     }
 }
Example #2
0
 public void AddTeamFeedback(WorkItem workItem, WorkFeedback feedback)
 {
     try
     {
         var vi = Db.Set <WorkItem>().SingleOrDefault(it => it.Id == workItem.Id);
         vi.TeamFeedBack = feedback;
         Db.SaveChanges();
     }
     catch (Exception ex)
     {
         LogEventManager.Logger.Error(ex.Message, ex);
         throw;
     }
 }
Example #3
0
 public void RemoveTeamFeedback(WorkItem workItem, WorkFeedback feedback)
 {
     try
     {
         var vi = GetById(workItem.Id);
         Db.Set <WorkFeedback>().Remove(vi.TeamFeedBack);
         vi.TeamFeedBackId = null;
         vi.TeamFeedBack   = null;
         Db.SaveChanges();
     }
     catch (Exception ex)
     {
         LogEventManager.Logger.Error(ex.Message, ex);
         throw;
     }
 }