public ActionResult Update(RaceDTO data) { Race cins = _raceService.GetByID(data.ID); cins.ID = data.ID; cins.RaceName = data.RaceName; cins.SeoTitle = data.SeoTitle; cins.SeoDescription = data.SeoDescription; cins.PettypeID = data.PettypeID; _raceService.Update(cins); return(Redirect("/Admin/Saying/List")); }
// PUT: api/Race/5 public IHttpActionResult Put(int id, [FromBody] Race race) { raceService.Update(race); return(Ok()); }