/// <summary>
 /// Create a new WeightUser object.
 /// </summary>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="displayName">Initial value of the DisplayName property.</param>
 /// <param name="pW">Initial value of the PW property.</param>
 /// <param name="active">Initial value of the Active property.</param>
 /// <param name="signUpDateTime">Initial value of the SignUpDateTime property.</param>
 /// <param name="admin">Initial value of the Admin property.</param>
 /// <param name="paid">Initial value of the Paid property.</param>
 public static WeightUser CreateWeightUser(global::System.Int32 userID, global::System.Boolean displayName, global::System.String pW, global::System.Boolean active, global::System.DateTime signUpDateTime, global::System.Boolean admin, global::System.Decimal paid)
 {
     WeightUser weightUser = new WeightUser();
     weightUser.UserID = userID;
     weightUser.DisplayName = displayName;
     weightUser.PW = pW;
     weightUser.Active = active;
     weightUser.SignUpDateTime = signUpDateTime;
     weightUser.Admin = admin;
     weightUser.Paid = paid;
     return weightUser;
 }
 public bool RegisterAccount(RegisterModel model)
 {
     using (Entities entity = new Entities(BaseBISL.ConnectionString))
     {
         WeightUser user = new WeightUser();
         user.UserName = model.UserName;
         user.PW = model.Password;
         user.SignUpDateTime = DateTime.Now;
         entity.AddToWeightUsers(user);
         int count = entity.SaveChanges();
         if (count > 0)
             return true;
     }
     return false;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the WeightUsers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToWeightUsers(WeightUser weightUser)
 {
     base.AddObject("WeightUsers", weightUser);
 }