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); }
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); }
public void TaskAdded(int columnId, Task taskAdded) { Clients.Others.TaskAdded(columnId, taskAdded); }