Exemplo n.º 1
0
    public Result SaveAccountTypeDetails(AccountType accountType, string BankCode, string Password)
    {
        Result result = new Result();

        try
        {
            if (accountType.IsValid(BankCode, Password))
            {
                result = bll.SaveAccountTypeDetails(accountType, BankCode);
            }
            else
            {
                result.StatusCode = accountType.StatusCode;
                result.StatusDesc = accountType.StatusDesc;
            }
        }
        catch (Exception ex)
        {
            result.StatusCode = "100";
            result.StatusDesc = "FAILED : " + ex.Message;
        }
        return(result);
    }