Exemplo n.º 1
0
        public void Delete(WalletOrder_History customer)
        {
            customer.IsDelete = true;
            FDIDB.WalletOrder_History.Attach(customer);
            var entry = FDIDB.Entry(customer);

            entry.Property(e => e.IsDelete).IsModified = true;
            // DB.Customers.Remove(customer);
        }
Exemplo n.º 2
0
        public ActionResult Add(string key, string json)
        {
            var model = new WalletOrder_History();
            var msg   = new JsonMessage(false, "Thêm mới dữ liệu thành công.");

            try
            {
                UpdateModel(model);
                model.DateCreate = ConvertDate.TotalSeconds(DateTime.Now);
                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));
        }
Exemplo n.º 3
0
 public void Add(WalletOrder_History customer)
 {
     FDIDB.WalletOrder_History.Add(customer);
 }