Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }