Exemple #1
0
 internal List <DishEntity> GetDishByStallIDEntities(Guid UserID, string LanguageCode = null)
 {
     try
     {
         DishDal objDAL   = new DishDal();
         DataSet dsFields = objDAL.GetByStallID(UserID, LanguageCode);
         return(MappingManager.MapDishAsListOfEntities(dsFields));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #2
0
 internal List <Dish> GetAllDishObjects()
 {
     try
     {
         DishDal objDAL   = new DishDal();
         DataSet dsFields = objDAL.GetAll();
         return(MappingManager.MapDishAsListOfBLObjects(dsFields));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #3
0
 internal Dish GetDishByIDObject(Guid ID, string LanguageCode = null)
 {
     try
     {
         DishDal objDAL   = new DishDal();
         DataSet dsFields = objDAL.GetByID(ID, LanguageCode);
         if (dsFields == null || dsFields.Tables[0].Rows.Count == 0)
         {
             return(null);
         }
         return(MappingManager.MapDishAsListOfBLObjects(dsFields)[0]);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #4
0
        internal int DeleteDishByID(Guid ID)
        {
            DishDal ObjDal = new DishDal();

            return(ObjDal.DeleteByID(ID));
        }