public bool Check_User_FB_And_GG(string username, string usertype) { if (dbContext == null) { dbContext = new FoodDeliveryEntities(); } bool ischeck = false; var entity = dbContext.CHECK_USER_LOGIN(username, usertype).FirstOrDefault(); if (entity != null) { ischeck = true; } return(ischeck); }