/// <summary> /// Gets the by identifier. /// </summary> /// <param name="itemId">The item identifier.</param> /// <param name="userId">The user identifier.</param> /// <returns></returns> public async Task <ToDoItemDto> GetById(int itemId, int userId) { return(await _toDoItemRepository.GetById(itemId, userId)); }
/// <summary> /// Get ToDoItem by id. /// </summary> /// <param name="toDoItemId">ToDoItem id.</param> /// <returns></returns> public async Task <ToDoItemDto> GetToDoItemById(int toDoItemId) { return(await _toDoItemRepo.GetById(toDoItemId, _userId)); }