public SaveResultVM Register(DocumentResolution model)
        {
            if (model.RegDate != null)
            {
                return(new SaveResultVM(true));
            }

            if (counterService.Counter_GetDocumentResolutionCounter(model))
            {
                repo.Update(model);
                repo.SaveChanges();
                return(new SaveResultVM(true, null, "register"));
            }
            else
            {
                return(new SaveResultVM(false, "Проблем при регистриране на разпореждане."));
            }
        }