public void Insert(int?UserId, decimal?Total, string Note, DateTime?OrderDate, DateTime?CreatedDate) { IngredientOrder item = new IngredientOrder(); item.UserId = UserId; item.Total = Total; item.Note = Note; item.OrderDate = OrderDate; item.CreatedDate = CreatedDate; item.Save(UserName); }
public void Update(int Id, int?UserId, decimal?Total, string Note, DateTime?OrderDate, DateTime?CreatedDate) { IngredientOrder item = new IngredientOrder(); item.MarkOld(); item.IsLoaded = true; item.Id = Id; item.UserId = UserId; item.Total = Total; item.Note = Note; item.OrderDate = OrderDate; item.CreatedDate = CreatedDate; item.Save(UserName); }
public bool Destroy(object Id) { return(IngredientOrder.Destroy(Id) == 1); }
public bool Delete(object Id) { return(IngredientOrder.Delete(Id) == 1); }