public async Task <Response> UpdateApartmentType(UpdateApartmentTypeViewModel createUpdateApartmentTypeViewModel) { var createUpdateApartmentTypeCommand = _mapper.Map <UpdateApartmentTypeCommand>(createUpdateApartmentTypeViewModel); return(await _mediator.Send(createUpdateApartmentTypeCommand)); }
public async Task <Response> UpdateApartmentType([FromForm] UpdateApartmentTypeViewModel model) { return(await _apartmentTypeService.UpdateApartmentType(model)); }