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.")); }
public async Task <IActionResult> GetAll() => Ok(await _platformTypeRepository.GetAllAsync());