예제 #1
0
        public IActionResult Post([FromBody] LeasingViewModel leasingViewModel)
        {
            _leasingService.CreateLeasing(leasingViewModel);

            return(Ok(leasingViewModel));
        }
 public void CreateLeasing(LeasingViewModel leasingViewModel)
 => _mediatorHandler.SendCommand(_mapper
                                 .Map <CreateLeasingCommand>(leasingViewModel));