public JsonResult Edit(FormCollection collection)
        {
            DM_VAITROBusiness = Get <DM_VAITROBusiness>();
            var result = new JsonResultBO(true);

            try
            {
                var id    = collection["ID"].ToIntOrZero();
                var myobj = DM_VAITROBusiness.Find(id);

                myobj.NGAYSUA = DateTime.Now;

                myobj.MA_VAITRO  = collection["MA_VAITRO"].ToString();
                myobj.TEN_VAITRO = collection["TEN_VAITRO"].ToString();
                myobj.TRONGSO    = collection["TRONGSO"].ToIntOrZero();
                myobj.IS_RECEIVE_DOC_DIRECTLY = collection["IS_RECEIVE_DOC_DIRECTLY"].ToIntOrZero() > 0;
                DM_VAITROBusiness.Save(myobj);
            }
            catch
            {
                result.Status  = false;
                result.Message = "Không cập nhật được";
            }
            return(Json(result));
        }
        public JsonResult Delete(long id)
        {
            var result = new JsonResultBO(true);

            DM_VAITROBusiness = Get <DM_VAITROBusiness>();
            DM_VAITROBusiness.repository.Delete(id);
            DM_VAITROBusiness.Save();
            return(Json(result));
        }