예제 #1
0
 public JsonResult DeleteAlert(BusinessLibrary.UIRequestClasses.TrackerUpdateRequest alertRequest)
 {
     try
     {
         BusinessLibrary.Library.ManageEmailAlertLibrary mLib = new BusinessLibrary.Library.ManageEmailAlertLibrary();
         mLib.DeleteEmailAlert(alertRequest.entryID);
         return(Json(new { StatusKey = "SUCCESS" }));
     }
     catch
     {
         return(Json(new { StatusKey = "ERROR" }));
     }
 }
예제 #2
0
        public JsonResult DeleteEntry(BusinessLibrary.UIRequestClasses.TrackerUpdateRequest entryRowObject)
        {
            Session currentSession = Helpers.AuthenticationHelper.GetSession(System.Web.HttpContext.Current);

            BusinessLibrary.Library.CurrencyConversionTrackerLibrary ctLib = new BusinessLibrary.Library.CurrencyConversionTrackerLibrary(System.Web.HttpContext.Current, currentSession);
            try
            {
                ctLib.DeleteEntry(entryRowObject.entryID);
                return(Json(new { StatusKey = "SUCCESS", rowID = entryRowObject.rowID }));
            }
            catch
            {
                return(Json(new { StatusKey = "ERROR", rowID = entryRowObject.rowID }));
            }
        }