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