コード例 #1
0
        public IActionResult UpdateConnectionString(int id, string celtaBSUserPassword)
        {
            try
            {
                var customerProduct = _repository.Get()
                                      .Include(c => c.Customer)
                                      .Include(p => p.Product)
                                      .Where(x => x.CustomersProductsId == id)
                                      .First();

                DatabaseHelpers.GenerateConnectionString(customerProduct, celtaBSUserPassword);

                return(Ok());
            }
            catch (Exception err)
            {
                return(NotFound(err.Message));
            }
        }