public ActionResult Create()
        {
            SetTitle("Create Block");
            var model = new BlockViewModel()
            {
                enabled = true
            };

            ViewBag.position = new SelectList(Constants.BLOCK_SECTION, "Key", "Value");

            return View(model);
        }
        public ActionResult Create(BlockViewModel model)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    model.created_by = UserHelpers.GetUser().id;
                    model.updated_by = UserHelpers.GetUser().id;

                    SetRequestURL(APIURL.BLOCK_INSERT, Method.POST);
                    request.AddBody(model);

                    var response = rest.Execute(request);

                    if (response.StatusCode == HttpStatusCode.OK)
                    {
                        long _id = JsonConvert.DeserializeObject<long>(response.Content);
                        SetMessage(Message.SuccessfulCreate(model.name), MESSAGE_TYPE.SUCCESS);

                        return RedirectToAction("Details", new { id = _id });
                    }
                    else
                    {
                        ModelState.AddModelError("", response.Content);
                    }
                }
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("", ex.Message);
            }

            SetTitle("Create Content Type");
            ViewBag.position = new SelectList(Constants.BLOCK_SECTION, "Key", "Value", model.position);
            return View(model);
        }