public ActionResult Add(string key) { var model = new Customer_Groups(); var msg = new JsonMessage(false, "Thêm mới dữ liệu thành công."); try { UpdateModel(model); model.IsDelete = false; _da.Add(model); _da.Save(); } catch (Exception ex) { msg.Erros = true; msg.Message = "Dữ liệu chưa được thêm mới"; Log2File.LogExceptionToFile(ex); } return(Json(msg, JsonRequestBehavior.AllowGet)); }
public void Add(Customer_Groups item) { FDIDB.Customer_Groups.Add(item); }