コード例 #1
0
        public async Task <ActionResult> CreateProduct(ProductType product)
        {
            if (product == null)
            {
                return(BadRequest());
            }

            await _productRepo.Create(product);

            return(Ok());
        }
コード例 #2
0
        public async Task <ActionResult> CreateSolution(SolutionType solution)
        {
            if (solution == null)
            {
                return(BadRequest());
            }

            await _solutionRepo.Create(solution);

            return(new JsonResult("Success"));
        }
コード例 #3
0
        public async Task <ActionResult> CreateTechnology(TechnologyType technology)
        {
            if (technology == null)
            {
                return(BadRequest());
            }

            await _technologyRepo.Create(technology);

            return(new JsonResult("Success"));
        }
コード例 #4
0
        public async Task <ActionResult> CreateService(ServiceType service)
        {
            if (service == null)
            {
                return(BadRequest());
            }

            await _serviceRepo.Create(service);

            return(new JsonResult("Success"));
        }