public async Task <Response> GetAllApartmentType(GetAllApartmentTypesViewModel model) { var getAllApartmentTypeCommand = _mapper.Map <GetAllApartmentTypeCommand>(model); return(await _mediator.Send(getAllApartmentTypeCommand)); }
public async Task <Response> GetAll([FromQuery] GetAllApartmentTypesViewModel model) { return(await _apartmentTypeService.GetAllApartmentType(model)); }