public IActionResult Login(PSSC.Models.User user)
        {
            UserRepository userRepo = new UserRepository();

            if (userRepo.GetUser(user.Username, user.Password) != null)
            {
                ViewBag.LoggedMessage = "Logged";
                return(RedirectToAction("Index", "Postare"));
            }
            else
            {
                PSSC.Models.User u = new PSSC.Models.User();
                return(View(user));
            }
        }
 public IActionResult Login()
 {
     PSSC.Models.User user = new PSSC.Models.User();
     return(View(user));
 }