Example #1
0
 public AgileR.Core.Entities.Task Create(int columnId, AgileR.Core.Entities.Task task)
 {
     var column = _context.Set<Column>().Single(x => x.Id == columnId);
     column.Tasks.Add(task);
     _context.Save();
     return task;
 }
Example #2
0
 public AgileR.Core.Entities.Task Update(AgileR.Core.Entities.Task update)
 {
     var entity = _context.Set<AgileR.Core.Entities.Task>().Single(x => x.Id == update.Id);
     entity.Title = update.Title;
     entity.Description = update.Description;
     entity.Index = update.Index;
     _context.Save();
     return entity;
 }