Example #1
0
        public BabyViewModel(int babyid)
        {
            this.Baby = context.Babies.Where(b => b.Id == babyid).FirstOrDefault();

            context.SubmitChanges();

            LoadWeights();
        }
Example #2
0
 public BabyViewModel() 
 {
     this.Baby = new Baby();
 }