public IQueryable <RequestTypeModel> Get() { var result = _service.Get(); var models = _mapper.Map <RequestType, RequestTypeModel>(result); return(models); }
public async Task <IActionResult> Get() { var result = await requestTypeService.Get(); return(Ok(result)); }