public UserWeight Register(double amount)
        {
            var weight = new UserWeight
            {
                Weight = amount,
                Id = Guid.NewGuid(),
                User = User.GetApplicationUser()
            };

            if (weight.When.Equals(default(DateTime)))
                weight.When = DateTime.Now;

            using (var db = new LiftBroContext())
            {
                db.Users.Attach(weight.User);
                db.UserWeights.Add(weight);
                db.SaveChanges();
            }

            return weight;
        }
 public void Update(UserWeight weight)
 {
     throw new NotImplementedException();
 }