/// <summary> /// Validating VenueName is duplicate or not /// </summary> /// <param name="venueName"></param> /// <returns></returns> public JsonResult CheckEquipmentNameExists(string EquipmentName) { try { var isVenueNameExists = _IEquipment.CheckEquipmentAlready(EquipmentName); if (isVenueNameExists) { return(Json(data: true)); } else { return(Json(data: false)); } } catch (Exception) { throw; } }