Example #1
0
        public TDMenu GetSingleTDMenu(string id)
        {
            var tmp = itdmenu.GetSingleTDMenu(id);

            if (tmp == null)
            {
                tmp = new TDMenu();
            }
            return(tmp);
        }
Example #2
0
        bool ITDMenuRespository.InsertTDMenu(TDMenu ourTDMenu)
        {
            int rowsAffected = (int)this.db.Insert(ourTDMenu);

            if (rowsAffected > 0)
            {
                return(true);
            }

            return(false);
        }
Example #3
0
        bool ITDMenuRespository.UpdateTDMenu(TDMenu ourTDMenu)
        {
            bool rowsAffect = this.db.Update(ourTDMenu);

            return(rowsAffect);
        }
Example #4
0
        public bool UpdateTDMenu([FromBody] TDMenu ourTDMenu)
        {
            var tmp = itdmenu.UpdateTDMenu(ourTDMenu);

            return(tmp);
        }
Example #5
0
        public bool InsertTDMenu([FromBody] TDMenu ourTDMenu)
        {
            var tmp = itdmenu.InsertTDMenu(ourTDMenu);

            return(tmp);
        }