Beispiel #1
0
    public Result SaveCustomerTypeDetails(CustomerType custType, string BankCode, string Password)
    {
        Result result = new Result();

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