public JsonResult GetCustomers() { var customer = new Customer { CompanyName = "CompanyName", ContactName = "ContactName", Country = "Country" }; return Json(customer, JsonRequestBehavior.AllowGet); }
private bool IsHaveEnoughCardsForCustomer(Customer customer) { foreach (var gem in customer.Price.Gems) { var playerGems = BoughtCards.Count(x => x.GemProduct == gem.Key); if(playerGems < gem.Value) { return false; } } return true; }
public void ProcessTakeCustomerAction(Customer parameters) { new TakeCustomerProcessor(_gameData, _playerData, _playerRoundStatus).Process(parameters); }
public ActionResult PostCustomer(Customer customer) { return null; }