/// <summary> /// Deletes the specified list identifier. /// </summary> /// <param name="listId">The list identifier.</param> /// <param name="userId">The user identifier.</param> /// <returns></returns> public async Task <int> Delete(long listId, long userId) { return(await _toDoListRepository.Delete(listId, userId)); }
/// <summary> /// Delete ToDoList record. /// </summary> /// <param name="id">The identifier.</param> /// <returns> /// 1 on successful deletion else throws argument exception. /// </returns> public async Task <int> DeleteToDoList(int id) { int deletedItem = await _toDoListRepo.Delete(id, _userId); return(deletedItem); }