Example #1
0
        public IActionResult LocationInUse(string Title)
        {
            Location location = locationRepository.GetByTitle(Title);

            return(location == null?Json(true) : Json($"The location { Title } is already registered"));
        }