public async Task <bool> DeleteAsync(int id, int clientId, int userId) { if (!await _permissionManager.HasPermission(clientId, userId, Permission.CanDeleteHoliday)) { throw new Exception("User has not permission to perform this operation"); } return(await _holidayRepository.DeleteAsync(id)); }
public async Task <bool> DeleteAsync(int holidayId) { return(await m_holidayRepository.DeleteAsync(holidayId)); }