public static string ChkduplicateLoc(string LocationCode, string WarehouseID) { string result = ""; iWarehouseClient Warehouseclient = new iWarehouseClient(); CustomProfile profile = CustomProfile.GetProfile(); long count = Warehouseclient.CheckDuplicateLocation(LocationCode, long.Parse(WarehouseID), profile.DBConnection._constr); if (count >= 1) { result = "Duplicate Found"; } return(result); }