Пример #1
0
        public async Task <IActionResult> PutTask(long id, Model.TaskStatus status)
        {
            var task = await dbContext.Tasks.FindAsync(id);

            if (task == null)
            {
                return(Ok());
            }

            task.Status = status;
            dbContext.Entry(task).State = EntityState.Modified;

            await dbContext.SaveChangesAsync();

            return(Ok());
        }
Пример #2
0
 public IEnumerable <Models.Task> GetByProject(Guid projectId, string personDni, Models.TaskStatus status)
 {
     throw new NotImplementedException();
 }