public async Task <JsonResult> DeleteRiskMitigation(int id)
        {
            ResponseModel response = new ResponseModel(true);
            var           dbItem   = await RiskMitigationRepo.FindByPkAsync(id);

            try
            {
                dbItem.IsDeleted = true;
                await RiskMitigationRepo.UpdateAsync(dbItem);

                string template = HttpContext.GetGlobalResourceObject("MyGlobalMessage", "DeleteSuccess").ToString();
                string message  = string.Format(template, dbItem.MitigationPlan);
                response.Message = message;
                return(Json(response));
            }
            catch (Exception)
            {
                response.SetFail("");
            }
            return(Json(response));
        }
        public async Task <JsonResult> DeleteRiskDocument(int id)
        {
            ResponseModel             response = new ResponseModel(true);
            FileNameProcessController fn       = new FileNameProcessController();
            var dbItem = await RiskDocumentRepo.FindByPkAsync(id);

            try
            {
                dbItem.IsDeleted = true;
                await RiskDocumentRepo.UpdateAsync(dbItem);

                string template = HttpContext.GetGlobalResourceObject("MyGlobalMessage", "DeleteSuccess").ToString();
                string message  = string.Format(template, fn.FriendlyName(dbItem.FilePath));
                response.Message = message;
                return(Json(response));
            }
            catch (Exception)
            {
                response.SetFail("");
            }
            return(Json(response));
        }