Example #1
0
 public string ValidateMaterialName(int intId, string strName)
 {
     try
     {
         ProductsBL        objMaterialBl = new ProductsBL();
         ApplicationResult objResult     = new ApplicationResult();
         objResult = objMaterialBl.Product_ValidateName(intId, strName);
         if (objResult != null)
         {
             if (objResult.resultDT.Rows.Count > 0)
             {
                 return("Not Available");
             }
             else
             {
                 return("Available");
             }
         }
         return("Try Again");
     }
     catch (Exception ex)
     {
         return(ex.ToString());
     }
 }