1

Topic: Server

orderViewModel oVM = TempData ["orderViewModel"] as orderViewModel; as  such model if it comes not as the method parameter is such [Required (ErrorMessage = "Enter a city, whence to carry")] public string from {get; set;} [Required (ErrorMessage = "Enter a city where to carry")] public string to {get; set;} but it is not assured that ModelState. IsValid will work