public void ChangeTaskStatus(ChangeStatusViewModel changeStatusViewModel) { TaskRepository repo = new TaskRepository(_connectionString); AccountRepository aRepo = new AccountRepository(_connectionString); User user = aRepo.GetByEmail(User.Identity.Name); repo.ChangeStatus(changeStatusViewModel.TaskId, changeStatusViewModel.Status, user); }
public string ChangeTaskStatus(int id) { _repo.ChangeStatus(id); return("200"); }