public static bool GetLicenseDetailsForCMSByUser(int userID, int SubscriptionTypeID) { bool result = false; using (var dbmEntityContainter = new DBMEdition01_Entities()) { result = (bool)dbmEntityContainter.GetLicenseDetailsForCMSByUser(userID, SubscriptionTypeID).FirstOrDefault(); } return(result); }