public async Task <Response> UpdateApartmentType(UpdateApartmentTypeViewModel createUpdateApartmentTypeViewModel)
        {
            var createUpdateApartmentTypeCommand = _mapper.Map <UpdateApartmentTypeCommand>(createUpdateApartmentTypeViewModel);

            return(await _mediator.Send(createUpdateApartmentTypeCommand));
        }
Example #2
0
 public async Task <Response> UpdateApartmentType([FromForm] UpdateApartmentTypeViewModel model)
 {
     return(await _apartmentTypeService.UpdateApartmentType(model));
 }