/// <summary> /// Deletes the specified label identifier. /// </summary> /// <param name="labelId">The label identifier.</param> /// <param name="userId">The user identifier.</param> /// <returns></returns> public async Task <int> Delete(int labelId, int userId) { return(await _labelRepository.Delete(labelId, userId)); }
/// <summary> /// Delete Label record. /// </summary> /// <param name="id">The identifier.</param> /// <returns> /// 1 on successful deletion else throws argument exception. /// </returns> public async Task <int> DeleteLabel(int id) { int deletedItem = await _labelRepo.Delete(id, _userId); return(deletedItem); }