public ActionResult Delete(ResultTblDeleteViewModel model)
        {
            try
            {
                TRN_RESULT_TB            result = _uow.Repository <TRN_RESULT_TB>().GetById(model.ID);
                ResultTblDeleteViewModel resultTblDeleteViewModel = new ResultTblDeleteViewModel()
                {
                    ID          = result.N_RESULT_SYSID,
                    Message     = "",
                    ShowMessage = false
                };

                return(View("Delete", resultTblDeleteViewModel));
            }
            catch (Exception ex)
            {
                if (ex.InnerException == null)
                {
                    ViewBag.Message = "Function: ResultTblController.Delete_GET\n\nError: " + ex.Message;
                }
                else
                {
                    ViewBag.Message = "Function: ResultTblController.Delete_GET\n\nError: " + (ex.Message + "\n\nInnerException: " + ex.InnerException.Message);
                };
                Session["ErrorMessage"] = ViewBag.Message;
                return(RedirectToAction("InternalServerError", "Error"));
            };
        }
        public ActionResult DeleteResult(ResultTblDeleteViewModel model)
        {
            try
            {
                int id = Convert.ToInt32(model.ID);
                _uow.Repository <TRN_RESULT_TB>().Delete(id);
                _uow.SaveChanges();

                return(RedirectToAction("Index", new { ID = id }));
            }
            catch (Exception ex)
            {
                if (ex.InnerException == null)
                {
                    ViewBag.Message = "Function: ResultTblController.Delete_POST\n\nError: " + ex.Message;
                }
                else
                {
                    ViewBag.Message = "Function: ResultTblController.Delete_POST\n\nError: " + (ex.Message + "\n\nInnerException: " + ex.InnerException.Message);
                };
                Session["ErrorMessage"] = ViewBag.Message;
                return(RedirectToAction("InternalServerError", "Error"));
            };
        }