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