示例#1
0
文件: StallLogic.cs 项目: nklinh/ASE
 internal List <StallEntity> GetStallByUserIDEntities(Guid UserID, string LanguageCode = null)
 {
     try
     {
         StallDal objDAL   = new StallDal();
         DataSet  dsFields = objDAL.GetByUserID(UserID, LanguageCode);
         return(MappingManager.MapStallAsListOfEntities(dsFields));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#2
0
文件: StallLogic.cs 项目: nklinh/ASE
 internal List <Stall> GetAllStallObjects()
 {
     try
     {
         StallDal objDAL   = new StallDal();
         DataSet  dsFields = objDAL.GetAll();
         return(MappingManager.MapStallAsListOfBLObjects(dsFields));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#3
0
文件: StallLogic.cs 项目: nklinh/ASE
 internal Stall GetStallByIDObject(Guid ID, string LanguageCode = null)
 {
     try
     {
         StallDal objDAL   = new StallDal();
         DataSet  dsFields = objDAL.GetByID(ID, LanguageCode);
         if (dsFields == null || dsFields.Tables[0].Rows.Count == 0)
         {
             return(null);
         }
         return(MappingManager.MapStallAsListOfBLObjects(dsFields)[0]);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#4
0
文件: StallLogic.cs 项目: nklinh/ASE
        internal int DeleteStallByID(Guid ID)
        {
            StallDal ObjDal = new StallDal();

            return(ObjDal.DeleteByID(ID));
        }