MVC Archive

It has 10 types of result. 1. ActionResult : It is a base class for all other types of results. 2. ViewResult : Renders specific view to response result. public ActionResult Myview() { return View(“MyView”); } 3. PartialViewResult :...
Validations in MVC can be done using Annotations. Annotations are attributes which be applied to Model Properties, for example : public class EmployeInfo { [Required(ErrorMessage="Name is Required")] public string Name { set; get; } } To Display validation message...