Beispiel #1
0
 /// <summary>
 /// Validating LightName is duplicate or not
 /// </summary>
 /// <param name="LightName"></param>
 /// <returns></returns>
 public JsonResult CheckLightNameAlready(string LightName)
 {
     try
     {
         var isLightNameExists = _ILight.CheckLightAlready(LightName);
         if (isLightNameExists)
         {
             return(Json(data: true));
         }
         else
         {
             return(Json(data: false));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }