Example #1
0
        public ActionResult Delete(int id = 0)
        {
            string message = string.Empty;

            using (var followUpConfigurationManager = new FollowUpConfigurationManager())
            {
                if (followUpConfigurationManager.DeleteFollowUpConfiguration(id, out message))
                {
                    return(View());
                }
                SetViewBagError(message);

                return(View());
            }
        }
Example #2
0
        public ActionResult DeleteFollowUpConfiguration(int followupconfigurationid)
        {
            string message = string.Empty;

            using (var followUpManager = new FollowUpConfigurationManager())
            {
                var success = followUpManager.DeleteFollowUpConfiguration(followupconfigurationid, out message);
                if (!success)
                {
                    Response.StatusCode = (int)HttpStatusCode.BadRequest;
                    return(Json(new { Error = message }));
                }
                //return Json(new { Success = "Deployment Successful." });
                return(View());
            }
        }