public async Task <IActionResult> AddBusinessPriority(BusinessPrioritiesRequestDto businessDto)
        {
            var response = await repository.AddBusinessPriority(businessDto, ActorType.Customer);

            if (response.Data == null)
            {
                return(NotFound(response));
            }

            return(Ok(response));
        }
예제 #2
0
        public async Task <IActionResult> AddBusinessPriority(BusinessPrioritiesRequestDto businessDto)
        {
            var response = await repository.AddBusinessPriority(businessDto, ActorType.Employee);

            if (response.Data == null)
            {
                logger.LogError(response.Message);

                return(NotFound(response));
            }

            logger.LogInformation(response.Message);
            return(Ok(response));
        }