예제 #1
0
        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));
        }
예제 #2
0
 public async Task <bool> DeleteAsync(int holidayId)
 {
     return(await m_holidayRepository.DeleteAsync(holidayId));
 }