public ActionResult Start(FakeHuman input) { if (ModelState.IsValid) { service.GetFake(input); service.Search(repository, 0); if (repository.Humans.Count > 0) { return new RedirectResult("human/list"); } else { ViewData["noresult"] = "1"; return View(); } } else return View(); //return new RedirectResult("~/human/list"); }
public void GetFake(FakeHuman fake) { this.fake.Name = fake.Name; this.fake.Age = fake.Age; this.fake.Location = fake.Location; }