public ActionResult ActivatePassword(DLAdmin admin) { try { if (Request["code"].ToString() != "") { try { Guid activationCode = new Guid(Request["code"].ToString()); if (bal.ActivationCode(activationCode, "Delete")) { return(Redirect("../Account/RePassword")); } else { TempData["Error"] = "Invalid Activation code...!!!"; return(View()); } } catch (Exception e) { TempData["Error"] = "Exception...!!! " + e.Message; return(View()); } } else { TempData["Error"] = "Please enter valid Activation code...!!!"; return(View()); } } catch (Exception ex) { throw ex; } }