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