示例#1
0
 internal List <TimelineEntity> GetTimelineByUserIDEntities(Guid UserID, string LanguageCode = null)
 {
     try
     {
         TimelineDal objDAL   = new TimelineDal();
         DataSet     dsFields = objDAL.GetByUserID(UserID, LanguageCode);
         return(MappingManager.MapTimelineAsListOfEntities(dsFields));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#2
0
 internal List <Timeline> GetAllTimelineObjects()
 {
     try
     {
         TimelineDal objDAL   = new TimelineDal();
         DataSet     dsFields = objDAL.GetAll();
         return(MappingManager.MapTimelineAsListOfBLObjects(dsFields));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#3
0
 internal Timeline GetTimelineByIDObject(Guid ID, string LanguageCode = null)
 {
     try
     {
         TimelineDal objDAL   = new TimelineDal();
         DataSet     dsFields = objDAL.GetByID(ID, LanguageCode);
         if (dsFields == null || dsFields.Tables[0].Rows.Count == 0)
         {
             return(null);
         }
         return(MappingManager.MapTimelineAsListOfBLObjects(dsFields)[0]);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#4
0
        internal int DeleteTimelineByID(Guid ID)
        {
            TimelineDal ObjDal = new TimelineDal();

            return(ObjDal.DeleteByID(ID));
        }