Esempio n. 1
0
        public async Task <ApiResponse> GetByID(int id)
        {
            var result = await platformTypeService.GetByIDAsync(id);

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

            return(new ApiResponse(result, ResponseStatusCode.Error, "Could not return a Platform Type."));
        }