예제 #1
0
        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);
        }
예제 #2
0
 public string ChangeTaskStatus(int id)
 {
     _repo.ChangeStatus(id);
     return("200");
 }