/*Method get customer object from Presentation layer and * call saveAccount method of DAL for save account in file.*/ public int createAccount(Customer_BO customer) { Administrator_DAL administrator = new Administrator_DAL(); bool result = administrator.saveAccount(customer); if (result == true) { return(customer.Account_No); } else { return(-1);//account number is never negative so it is a check to validate whether acoount is created or not } }