public SubjectHelper(API.LABURNUM.COM.Subject subject) { if (subject == null) { throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL); } ; this.Subjects = new List <API.LABURNUM.COM.Subject>(); this.Subjects.Add(subject); }
private DTO.LABURNUM.COM.SubjectModel MapCore(API.LABURNUM.COM.Subject apiSubject) { DTO.LABURNUM.COM.SubjectModel dtoSubject = new DTO.LABURNUM.COM.SubjectModel() { SubjectId = apiSubject.SubjectId, SubjectName = apiSubject.SubjectName, CreatedOn = apiSubject.CreatedOn, IsActive = apiSubject.IsActive, LastUpdated = apiSubject.LastUpdated }; return(dtoSubject); }