public static void INSERTANDUPDATEFARMERDETAILS(string FarmerID, string Name, string Location, string ContactNo, string PanNo, string BankAccountNo, string Active) { try { CRBusinessLogicLayer.FARMER_DETAILS_INSERT_UPDATE(FarmerID == "" ? 0 : Convert.ToInt32(FarmerID), Name, Location, ContactNo, PanNo, BankAccountNo, Active); } catch (Exception ex) { logfile.ErrorFormat(ex.Message); } }