public IActionResult GetCustomerTypes() { var customerTypesEntities = _customerTypeService.GetCustomerTypes(); return(Ok(_mapper.Map <IEnumerable <CustomerTypeDto> >(customerTypesEntities))); }
public async Task <IActionResult> Get() { return(Ok(await _customerTypesService.GetCustomerTypes())); }