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

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

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