public virtual ActionResult DeleteSignatureByUser(SignatureModel signature) { var messageStatus = MessageNotificationCodes.DeleteDataSucessfully; bool deleted = false; try { deleted = Signatures.DeleteSignatureByUserSignatureId(signature.UserSignatureId); if (!deleted) { messageStatus = MessageNotificationCodes.DeleteDataFail; } return(RedirectToAction("IndexSignatures", new { messageStatus = messageStatus })); } catch (Exception) { messageStatus = MessageNotificationCodes.DeleteDataFail; } return(RedirectToAction("IndexSignatures", new { messageStatus = messageStatus })); }