BB.UI.Web.MVC.Controllers.OrganisationsController.IsNameAvailable C# (CSharp) Method

IsNameAvailable() public method

public IsNameAvailable ( string name ) : System.Web.Mvc.ActionResult
name string
return System.Web.Mvc.ActionResult
        public ActionResult IsNameAvailable(string name)
        {
            return Json(organisationManager.ReadOrganisations().All(org => org.Name != name),
                JsonRequestBehavior.AllowGet);
        }