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); } }
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); } }
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); } }
internal int DeleteTimelineByID(Guid ID) { TimelineDal ObjDal = new TimelineDal(); return(ObjDal.DeleteByID(ID)); }