Example #1
0
 public ActionResult DeleteContact(string contactid, string compid)
 {
     try
     {
         int CompidIddecrypt = Convert.ToInt32(CryptorEngine.Decrypt(cm.Code_Decrypt(Convert.ToString(compid))));
         int ConIddecrypt    = Convert.ToInt32(CryptorEngine.Decrypt(cm.Code_Decrypt(Convert.ToString(contactid))));
         context.SPdeleteContact(ConIddecrypt);
         context.SaveChanges();
     }
     catch (Exception ex)
     {
         cm.ErrorExceptionLogingByService(ex.ToString(), "ProspectViewCompanyClient" + ":" + new StackTrace().GetFrame(0).GetMethod().Name, "DeleteContact", "NA", "NA", "NA", "WEB");
     }
     return(RedirectToAction("Index", new { @Compid = compid }));
 }