Ejemplo n.º 1
0
        public async Task <int> GetDelayAsync(string userId, int eventId)
        {
            var result = await _userEventRepository.GetDelayAsync(userId, eventId);

            if (result.Status == RepositoryStatus.Ok)
            {
                return(result.Entity);
            }
            throw new ServiceException(ErrorCodes.EntityNotFound);
        }