public List <Entity.Menu> GetAllMenus() { try { List <Entity.Menu> list = _menuDAL.GetAllMenus(); foreach (Entity.Menu m in list) { m.SetListPlats(_platDAL.GetPlatByMenu(m)); } return(list); } catch (Exception ex) { throw new Exception(ex.Message); } }
public List <Entity.Plat> GetPlatByMenu(Entity.Menu menu) { try { return(_platDAL.GetPlatByMenu(menu)); } catch (Exception ex) { throw new Exception(ex.Message); } }