I created this model class:
public class test5
{
[Required] //when title field empty send from client this is show this messae" The title field is required."
public string title { get; set; }
public int content { get; set; }
}
I want edit Required filed error message to custom message and when I use that validation like [Required] anywhere display that error message. how I can do this?