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