示例#1
0
        public JsonResult DeletePostCard(int postCardID)
        {
            var result = new ActionOutput();

            //result.Message = "Error";
            //result.Status = ActionStatus.Error;
            result = _editorManager.DeletePostCardByID(postCardID);
            return(JsonResult(result));
        }
示例#2
0
 public HttpResponseMessage DeletePostCard(int id)
 {
     try
     {
         var result = _editorManager.DeletePostCardByID(id);;
         return(new JsonContent(result.Message, result.Status).ConvertToHttpResponseOK());
     }
     catch
     {
         return(new JsonContent("Internal Server Error", ActionStatus.Error, null).ConvertToHttpResponseOK());
     }
 }
示例#3
0
 public JsonResult DeletePostCard(int PostCardId)
 {
     ViewBag.SelectedTab = SelectedAdminTab.Postcard;
     return(JsonResult(_editorManager.DeletePostCardByID(PostCardId)));
 }