public async Task <JsonResult> Create(LinhVucThuTucViewModel model)
        {
            return(await ExecuteWithErrorHandling(async() =>
            {
                var result = model.ToDataResult <LinhVucThuTucResult>().Update(u =>
                {
                    u.ParentId = model.ParentId ?? 0;
                    u.CreatedBy = UserName;
                });

                return await ExecuteResultAsync(async() => await ThuTucRepository.AddAsync(result));
            }));
        }
        public ActionResult Index()
        {
            _listLinhVucThuTuc = ThuTucRepository.GetAll();
            _listLinhVucThuTuc.OrderByDescending(x => x.Id).ToList().ForEach(x =>
            {
                x.Ten = GetNameMultiple(x);
            });

            var model = new LinhVucThuTucViewModel {
                LinhVucThuTuces = _listLinhVucThuTuc
            };

            return(View(model));
        }