示例#1
0
        public string AddStandard(Standard model)
        {
            try
            {
                Standard standard = new Standard();
                standard.ClassName = model.ClassName;
                this.entities.Standards.Add(standard);
                entities.SaveChanges();
                return "Add Succefully";
            }
            catch { return "Pleace Retry"; }

        }
 public ActionResult Standard(Standard model)
 {
     _standard.AddStandard(model);
     return View();
 }