public List <StoreEntity> Get_List_Store() { List <StoreEntity> list = new List <StoreEntity>(); if (dbContext == null) { dbContext = new FoodDeliveryEntities(); } var listvar = dbContext.GET_LIST_STORE().ToList(); foreach (var obj in listvar) { StoreEntity entity = new StoreEntity { StoreID = "" + obj.StoreID, StoreName = obj.StoreName, Address = obj.Address, OpenDoor = "" + obj.OpenDoor, CloserDoor = "" + obj.CloserDoor, ServiceCharge = (decimal)obj.ServiceCharge, ShippingFee = (decimal)obj.ShippingFee, Manner = obj.Manner, Website = obj.Website, StoreType = obj.StoreType, StoreBanner = "http://localhost:63116/Data/Originals/t.PNG", Rating = (double)obj.Rating, Evaluation = (int)obj.Evaluation, ConditionShip = (long)obj.ConditionShip, StartDate = (int)obj.StartDate, EndDate = (int)obj.EndDate, }; list.Add(entity); } return(list); }