// // GET: /Account/UploadFile public ActionResult UploadFile() { if (User.Identity.IsAuthenticated) { var user = GetUser(); var model = new UploadFileModel { Patients = _context.Patients.Where(x => x.User.UserName == user.UserName).ToArray() }; return View(model); } return RedirectToAction("LogIn", "Account"); }
// // GET: /Account/UploadFile public ActionResult UploadFile() { if (User.Identity.IsAuthenticated) { var user = GetUser(); var model = new UploadFileModel {Patients = user.Patients}; return View(model); } return RedirectToAction("LogIn", "Account"); }