Пример #1
0
        public ContentResult DeleteCategory(string id)
        {
            _blogRepository.DeleteCategory(new Guid(id));

            var json = JsonConvert.SerializeObject(new
            {
                success = true,
                message = "Category deleted successfully."
            });

            return(Content(json, "application/json"));
        }