public JsonResult DeletePostCard(int postCardID) { var result = new ActionOutput(); //result.Message = "Error"; //result.Status = ActionStatus.Error; result = _editorManager.DeletePostCardByID(postCardID); return(JsonResult(result)); }
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()); } }
public JsonResult DeletePostCard(int PostCardId) { ViewBag.SelectedTab = SelectedAdminTab.Postcard; return(JsonResult(_editorManager.DeletePostCardByID(PostCardId))); }