I have two methods A and B only after the success of two methods i have to insert into database... So is this a valid conditional Statement in c#?
if(A() && B())
{
//insert into db
}
After the execution of method A i have to execute B If both are successful i have to insert...