Exemplo n.º 1
0
        public JsonResult Edit(int id, IFormCollection collection)
        {
            DeptEntity entity = new DeptEntity();

            TryUpdateModelAsync(entity);
            var result = service.Update(entity, AppUser, () =>
            {
                DeptUtil.Clear();
            });

            return(Json(result));
        }