/// <summary> /// obtains a section according the identifier /// </summary> /// <param name="sectionId">identifier section</param> /// <returns>returns a object section</returns> public Section GetSection(int sectionId) { try { SectionRepository objsection = new SectionRepository(this.session); objsection.Entity.SectionId = sectionId; objsection.Load(); objsection.Entity.MaxValue = objsection.GetMaxOrder(); return(objsection.Entity); } catch (Exception ex) { Utils.InsertLog( this.session, "Load Section", ex.Message + " - " + ex.StackTrace); return(null); } }