示例#1
0
        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"));
        }
示例#2
0
 // PUT: api/Race/5
 public IHttpActionResult Put(int id, [FromBody] Race race)
 {
     raceService.Update(race);
     return(Ok());
 }