Esempio n. 1
0
        public ActionResult Add(string key)
        {
            var model = new Order_Debt();

            try
            {
                if (key != Keyapi)
                {
                    return(Json(0, JsonRequestBehavior.AllowGet));
                }
                UpdateModel(model);
                model.IsDeleted  = false;
                model.Datecreate = DateTime.Now.TotalSeconds();
                model.Note       = HttpUtility.UrlDecode(model.Note);
                _da.Add(model);
                _da.Save();
                return(Json(1, JsonRequestBehavior.AllowGet));
            }
            catch (Exception)
            {
                return(Json(0, JsonRequestBehavior.AllowGet));
            }
        }
Esempio n. 2
0
 public void Delete(Order_Debt obj)
 {
     FDIDB.Order_Debt.Remove(obj);
 }
Esempio n. 3
0
 public void Add(Order_Debt obj)
 {
     FDIDB.Order_Debt.Add(obj);
 }