Пример #1
0
        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));
        }
Пример #2
0
 public void Add(Customer_Groups item)
 {
     FDIDB.Customer_Groups.Add(item);
 }