예제 #1
0
        public async Task <ApiResponse> GetAll()
        {
            IEnumerable <PlatformType> result = await platformTypeService.GetAllAsync();

            if (result != null)
            {
                return(new ApiResponse(result, ResponseStatusCode.Success, "Successfully returned Platform Type list."));
            }

            return(new ApiResponse(result, ResponseStatusCode.Error, "Could not return Platform Type list."));
        }
예제 #2
0
 public async Task <IActionResult> GetAll() => Ok(await _platformTypeRepository.GetAllAsync());