public ActionResult Delete(long?parentId, long id)
        {
            var craft = _craftRepository.GetById(id);

            if (!_craftService.IsDeactivable(craft))
            {
                ModelState.AddModelError("Craft", _localizationService.GetResource("Common.NotDeactivable"));
            }

            if (ModelState.IsValid)
            {
                _craftRepository.DeactivateAndCommit(craft);
                //notification
                SuccessNotification(_localizationService.GetResource("Record.Deleted"));
                return(new NullJsonResult());
            }
            else
            {
                return(Json(new { Errors = ModelState.SerializeErrors() }));
            }
        }