public JsonResult Insert(HttpPostedFileBase resim, BlogModel model)
        {
            string path = "";
            if (resim != null)
            {

                FileUploadResult result = ImageUploadService.CreateService(resim).Upload("~/Content/uploaded", model.Title);
                if (!result.IsSuccess)
                {
                    return Json(result.ToJson(), JsonRequestBehavior.AllowGet);
                }
                path = result.FilePath;
            }

            Blog blog = new Blog()
            {
                Tag = model.Tags,
                Title = model.Title,
                Description = model.Description,
                BlogContent = model.HtmlContent,
                ImagePath = path,
                AdminId = CurrentUser.Id,
                MenuId =1002, // HACK Get menu ıd generic,
                PageSlug = UrlYap(model.Title),
                IsActive = true,
            };

            DataRequestResult dataResult = Services.Blog.Insert(blog);

            return Json(dataResult.ToJson(), JsonRequestBehavior.AllowGet);
        }
        public JsonResult Update(Blog blog)
        {
            JsonResponse response = Services.Blog.Update(blog).ToJson();

            return Json(response, JsonRequestBehavior.AllowGet);
        }