public static OwnerBankDetail GetOwnerBankDetailById(int BankId) { OwnerBankDetail bankDetail = new OwnerBankDetail(); var Data = OwnerService.GetOwnerBankDetail(BankId); if (Data != null) { bankDetail.Id = Data.Id; bankDetail.BankName = Data.BankName; bankDetail.Branch = Data.Branch; bankDetail.AccountNumber = Data.AccountNumber; bankDetail.IFSC = Data.IFSC; } return(bankDetail); }