public void RegisterNewUser(string username, string password)
        {
            using (var db = new WeightDBEntities())
            {
                Users user = new Users();
                user.Username = username;
                user.Password = password;


                var _user = db.Set <Users>();
                _user.Add(user);
                db.SaveChanges();
            }
        }
        public void SendValuesToDatabase(int weight, DateTime?date, string description, int id)
        {
            try
            {
                using (var db = new WeightDBEntities())
                {
                    Weights weights = new Weights();
                    weights.UserID       = id;
                    weights.Weight       = weight;
                    weights.CreationDate = date;
                    weights.Description  = description;


                    var _weight = db.Set <Weights>();
                    _weight.Add(weights);
                    db.SaveChanges();
                }
            }
            catch (Exception e)
            {
                e.ToString();
            }
        }