Пример #1
0
 public void DeleteTask(string type, int id)
 {
     if (type == "daily")
     {
         _taskAccess.DeleteDaily(id, _userInfo.GetUserId());
     }
     if (type == "habit")
     {
         _taskAccess.DeleteHabit(id, _userInfo.GetUserId());
     }
     if (type == "todo")
     {
         _taskAccess.DeleteTodo(id, _userInfo.GetUserId());
     }
 }