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)); }
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)); }