Example #1
0
        public IQueryable <RequestTypeModel> Get()
        {
            var result = _service.Get();
            var models = _mapper.Map <RequestType, RequestTypeModel>(result);

            return(models);
        }
Example #2
0
        public async Task <IActionResult> Get()
        {
            var result = await requestTypeService.Get();

            return(Ok(result));
        }