public ActionResult Delete(DanTocEntity dantoc)
        {
            DanTocServices service = new DanTocServices();

            try
            {
                if (service.Delete(dantoc))
                    return Json(RenderResult.RequestCompleted(ViewData, "Xóa thành công"));

                return Json(RenderResult.RequestCompleted(ViewData, "Xóa không thành công"));
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.ToString());
                return Json(RenderResult.RequestError(ViewData, "Lỗi xảy ra"));
            }

        }
        public ActionResult DeleteWithID(string id)
        {
            DanTocServices service = new DanTocServices();

            if (id == null)
                return Json(RenderResult.RequestError(ViewData, "Đối số không hợp lệ"));

            List<int> ids = StringUtility.SplitIdEntity(id);

            try
            {
                for (int i = 0; i < ids.Count; ++i)
                {
                    service.Delete(ids[i]);
                }


                return Json(RenderResult.RequestCompleted(ViewData, "Xóa thành công"));
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.ToString());
                return Json(RenderResult.RequestError(ViewData, "Lỗi xảy ra"));
            }

        }