/// <summary>
 /// Deprecated Method for adding a new object to the WeightCheckIns EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToWeightCheckIns(WeightCheckIn weightCheckIn)
 {
     base.AddObject("WeightCheckIns", weightCheckIn);
 }
 /// <summary>
 /// Create a new WeightCheckIn object.
 /// </summary>
 /// <param name="checkInID">Initial value of the CheckInID property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="checkInDate">Initial value of the CheckInDate property.</param>
 /// <param name="weight">Initial value of the Weight property.</param>
 public static WeightCheckIn CreateWeightCheckIn(global::System.Int32 checkInID, global::System.Int32 userID, global::System.DateTime checkInDate, global::System.Int32 weight)
 {
     WeightCheckIn weightCheckIn = new WeightCheckIn();
     weightCheckIn.CheckInID = checkInID;
     weightCheckIn.UserID = userID;
     weightCheckIn.CheckInDate = checkInDate;
     weightCheckIn.Weight = weight;
     return weightCheckIn;
 }
 public bool InsertWeightCheckIn(WeightCheckInModel model)
 {
     using (Entities entity = new Entities(BaseBISL.ConnectionString))
     {
         WeightCheckIn checkIn = new WeightCheckIn();
         checkIn.UserID = model.UserId;
         checkIn.Weight = model.Weight;
         checkIn.CheckInDate = model.CheckInDate;
         entity.AddToWeightCheckIns(checkIn);
         int count = entity.SaveChanges();
         if (count > 0)
             return true;
     }
     return false;
 }