コード例 #1
0
        public List <string> Validate(EditFolderModel model)
        {
            var warnings   = new List <string>();
            var parentPath = GetParentPath(model);

            if (_fileClient.HasFolder(Path.Combine(parentPath, model.Title)))
            {
                warnings.Add("Selle nimega kaust on juba olemas");
            }

            return(warnings);
        }