Esempio n. 1
0
        public string Create(FolderJsonStructure folderData)
        {
            var result = _unitOfWork.FoldersRepository.Create(folderData.ToEntity());

            _unitOfWork.Save();
            return(result.Id.ToString());
        }
Esempio n. 2
0
        public string Update(int id, FolderJsonStructure folderData)
        {
            folderData.Id = id;
            var result = _unitOfWork.FoldersRepository.Update(folderData.ToEntity());

            _unitOfWork.Save();
            return(result.Id.ToString());
        }