Ejemplo n.º 1
0
        public ActionResult Update(long id)
        {
            var data = _service.GetById(id);

            if (data != null)
            {
                if (TryUpdateModel(data))
                {
                    _service.Update(data);
                }
            }
            return(IndexAjax());
        }