I have a remote validation on one of the fields of a class:

```
    [Remote("IsCityUnique", "City", AdditionalFields = "Onvan", HttpMethod = "POST", ErrorMessage = "City name isn't unique.")]
    public string CityName
    {
        get { return _CityName; }
        set
        {
            if (_CityName != value)
            {
                _CityName = value;
                OnPropertyChanged("CityName");
            }
        }
    }
    private string _CityName;

```

And in my Controller:

```
    public JsonResult IsCityUnique(string Cityname)
    {
        ....
        List<City> citylist = cr.GetAll().ToList();
        return Json(!citylist .Any(c => c.CityName== Cityname));
    }

```

the "IsCityUnique" will fire correctly , but validation method in Edit & Create is diffrent.How can I fire proper method when I'm in create mode or Edit mode? I think if I can pass action name to this method then I can manage it.But I didn't know how can I pass action name to remote method.Otherwise , can you suggest me a proper way?