//Check in/out public IActionResult Index() { bool isCheckedIn = false; if (authProvider.IsLoggedIn) { isCheckedIn = visitDAL.HasOpenVisit(authProvider.GetCurrentUser().Id); } return(View(isCheckedIn)); }
public IActionResult CheckInCheckOut2(MemberToBeCheckInOut model) { User userLookedUp = userDAL.GetUserWithDapper(model.UserEmail); if (userLookedUp == null) { return(View("Index", new Message($"{model.UserEmail} does not exist"))); } model.UserId = userLookedUp.Id; model.IsCheckedIn = visitDAL.HasOpenVisit(userLookedUp.Id); return(View(model)); }