Example #1
0
 /// <summary>
 /// Validating VenueName is duplicate or not
 /// </summary>
 /// <param name="venueName"></param>
 /// <returns></returns>
 public JsonResult CheckDishNameExists(string DishName, string FoodType)
 {
     try
     {
         var isDishNameExists = _IFood.CheckDishNameAlready(DishName, FoodType);
         if (isDishNameExists)
         {
             return(Json(data: true));
         }
         else
         {
             return(Json(data: false));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }