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)); } }
public void Delete(Order_Debt obj) { FDIDB.Order_Debt.Remove(obj); }
public void Add(Order_Debt obj) { FDIDB.Order_Debt.Add(obj); }