Esempio n. 1
0
        public async Task <IActionResult> AgentResponse(int id, [FromForm] AgentOfferResponseViewModel responseVm)
        {
            if (ModelState.IsValid)
            {
                var responceDto = _mapper.Map <AgentOfferResponseDto>(responseVm);
                await _offerService.AgentResponse(id, responceDto);

                return(Ok());
            }

            return(BadRequest());
        }