public int UpdateStatus(Guid quizId, byte?status) { if (!status.HasValue) { status = 0; } var result = (int)db.qz_Quiz_UpdateStatus(quizId, status).Single(); return(result); }