Пример #1
0
        public ActionResult DeleteJob(string jobid, string wbid)
        {
            try
            {
                int wbiddecrypt  = Convert.ToInt32(CryptorEngine.Decrypt(cm.Code_Decrypt(Convert.ToString(wbid))));
                int jobiddecrypt = Convert.ToInt32(CryptorEngine.Decrypt(cm.Code_Decrypt(Convert.ToString(jobid))));
                context.spdeletejob(jobiddecrypt);
                context.SaveChanges();
                TempData["Message"] = "Record Deleted";
                return(RedirectToAction("WhiteBoardDetails", new { @wbid = @cm.Code_Encrypt(CryptorEngine.Encrypt(wbiddecrypt.ToString())) }));
            }
            catch (Exception ex)
            {
                TempData["Message"] = "Some error occured";
                cm.ErrorExceptionLogingByService(ex.ToString(), "WhiteBoards" + ":" + new StackTrace().GetFrame(0).GetMethod().Name, "DeleteJob", "NA", "NA", "NA", "WEB");
            }


            return(View());
        }