public RedirectToActionResult SelectedCommunity(LocalUser info) { //here is where we are going to verify the user UserDbManager.GetInstance().UserSelectedCommunity(info.SelectedCommunity); var userCur = CurrentUser.Storage().UserDb; // return View("../Main/Index", CurrentUser.Storage()); return(RedirectToAction("Index", "Main")); }
public RedirectToActionResult SignIn(LocalUser user) { if (!UserDbManager.GetInstance().SignIn(user)) { return(RedirectToAction("SignIn", "Auth")); } var curr = CurrentUser.Storage(); return(RedirectToAction("Index", "Main")); }
public RedirectToActionResult SignUp(LocalUser newUser) { if (UserDbManager.GetInstance().SignUp(newUser)) { //sign up successfuly return(RedirectToAction("SignIn", "Auth")); } //sign up failed return(RedirectToAction("SignUp", "Auth")); }
public ViewResult SelectCommunity() { UserDbManager.GetInstance().CommunityListByUserLocation(); return(View(CurrentUser.Storage())); }