public bool CreateEatery(EateryCreate model) { Eatery food = new Eatery { Name = model.Name, CuisineType = model.CuisineType, DineIn = model.DineIn, Tier = model.Tier, AreaId = model.AreaId }; using (var fd = new ApplicationDbContext()) { fd.Eateries.Add(food); return(fd.SaveChanges() == 1); } }
public int Compute(Eatery f) { return(f.SeatingCapacity * 100 + 1000); }
public int Compute(Eatery f) { return(f.SeatingCapacity * 25); }