I want to perform validation without using Data Annotation as i have used EF in n-tier MVC 4 razor architecture. And also Data Annotations doesn't work for EF controls.You all can see my code here:
[HttpPost]
public ActionResult RegisterNewUser(CreateUser obj)
{
if (ModelState.IsValid)
{
//
}
}
and ModalState.Isvalid doesn't work. How can I resolve this?