public void Insert(int OrderFrom, int OrderTo, DateTime DateInput, string ObjectX, string Sex, string Address) { TblLot item = new TblLot(); item.OrderFrom = OrderFrom; item.OrderTo = OrderTo; item.DateInput = DateInput; item.ObjectX = ObjectX; item.Sex = Sex; item.Address = Address; item.Save(UserName); }
public void Update(int Id, int OrderFrom, int OrderTo, DateTime DateInput, string ObjectX, string Sex, string Address) { TblLot item = new TblLot(); item.MarkOld(); item.IsLoaded = true; item.Id = Id; item.OrderFrom = OrderFrom; item.OrderTo = OrderTo; item.DateInput = DateInput; item.ObjectX = ObjectX; item.Sex = Sex; item.Address = Address; item.Save(UserName); }
public bool Destroy(object Id) { return(TblLot.Destroy(Id) == 1); }
public bool Delete(object Id) { return(TblLot.Delete(Id) == 1); }