public TDMenu GetSingleTDMenu(string id) { var tmp = itdmenu.GetSingleTDMenu(id); if (tmp == null) { tmp = new TDMenu(); } return(tmp); }
bool ITDMenuRespository.InsertTDMenu(TDMenu ourTDMenu) { int rowsAffected = (int)this.db.Insert(ourTDMenu); if (rowsAffected > 0) { return(true); } return(false); }
bool ITDMenuRespository.UpdateTDMenu(TDMenu ourTDMenu) { bool rowsAffect = this.db.Update(ourTDMenu); return(rowsAffect); }
public bool UpdateTDMenu([FromBody] TDMenu ourTDMenu) { var tmp = itdmenu.UpdateTDMenu(ourTDMenu); return(tmp); }
public bool InsertTDMenu([FromBody] TDMenu ourTDMenu) { var tmp = itdmenu.InsertTDMenu(ourTDMenu); return(tmp); }