コード例 #1
0
        public async Task <Response> CreateApartmentType(CreateApartmentTypeViewModel createUpdateApartmentTypeViewModel)
        {
            var createUpdateApartmentTypeCommand = _mapper.Map <CreateApartmentTypeCommand>(createUpdateApartmentTypeViewModel);

            return(await _mediator.Send(createUpdateApartmentTypeCommand));
        }
コード例 #2
0
 public async Task <Response> CreateApartmentType([FromForm] CreateApartmentTypeViewModel model)
 {
     return(await _apartmentTypeService.CreateApartmentType(model));
 }