Esempio n. 1
0
        public bool update_formula_details(Formulation formula, String formulaid)
        {
            var original = dbContext.Formulations.Find(formulaid);

            try
            {
                dbContext.Entry(original).CurrentValues.SetValues(formula);
                dbContext.SaveChanges();
                return(true);
            }
            catch (Exception e)
            {
                return(false);
            }
        }