Guest User

Untitled

a guest
Apr 26th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 KB | None | 0 0
  1.  
  2. public ActionResult Index()
  3.         {
  4.             #region Temporary Mock
  5.             User u = new User();
  6.             u.UserID = 1;
  7.             u.UserName = "DerBayer";
  8.             u.Password = "stefan";
  9.             u.FirstName = "Stefan";
  10.             u.SurName = "Schacherl";
  11.             u.MailAddress = "der@bay.er";
  12.             u.Permission = 1;
  13.             u.Active = true;
  14.             u.Birthday = new DateTime(1987, 11, 22);
  15.  
  16.             List<HealthData> lh = new List<HealthData>();
  17.             HealthData h = new HealthData();
  18.             h.ID = 1;
  19.             h.Date = DateTime.Now;
  20.             h.Weight = 77.24;
  21.             h.Height = 177;
  22.             h.FK_User = 1;
  23.  
  24.             lh.Add(h);
  25.             #endregion
  26.  
  27.             return View(new ViewModels.VitalDataList(u, lh));
  28.         }
Add Comment
Please, Sign In to add comment