I need to run two methods
Metodo1();
Metodo2();
The first one should be executed normally after this I must return to the interface and leave in background
the method 2 since it takes a little longer and does not return anything to the interface.
the first method does the following
var dbcmd = database.GetStoredProcCommand("App_SpProgramarCita");
database.AddInParameter(dbcmd, "IdCita", DbType.Int32, idCita);
database.AddInParameter(dbcmd, "IdUsuario", DbType.Int32, idUsuario);
database.ExecuteScalar(dbcmd);
and the second one sends an email, my idea was an asynchronous method but the executescalar does not have this kind of handling.