vendredi 9 février 2018

If else statament

i am working with a project and i need to return the credit card limit as string, I managed to create store procedure and the method in c# but now i dont know how to make the if else statements for the values that with be returned. anyone can help me? below is the code! thanks in advance

public static string sp_GetCCard_Limit(string docRoot)     
{
    DataTable a = cmdExecutor.ExecuteDataSet("sp_GetCCard_Limit", docRoot).Tables[0];
    return cmdExecutor.ExecuteDataSet("sp_GetCCard_Limit", docRoot).Tables[0].Rows[1]["VALUE"].ToString();
}

Aucun commentaire:

Enregistrer un commentaire