public int Save() { int uID = UserBLL.GetIDFromUserName(this.UserName); int i = 0; if (uID == 0) { throw new UserEnrolException("Username not found"); } else { UserEnrolmentBLL u = new UserEnrolmentBLL { UserID = uID, EventID = this.EventID, Key = this.Key }; i = u.Save(); } return(i); }
public static List <UserEnrolmentDisplay> List() { return(UserEnrolmentBLL.List().AsEnumerable().Select(r => (UserEnrolmentDisplay)r).ToList()); }
public static UserEnrolmentDisplay GetDetails(int EnrolmentID) { return((UserEnrolmentDisplay)UserEnrolmentBLL.GetDetails(EnrolmentID)); }