public void Save(FolderDTO dto) { using (var connection = new SqlConnection(_ConnectionString)) { connection.Update(dto); } }
public void Delete(FolderDTO dto) { using (var connection = new SqlConnection(_ConnectionString)) { connection.Delete(dto); } }
public void Add(FolderDTO dto) { dto.UserId = User.Id; using (var connection = new SqlConnection(_ConnectionString)) { connection.Insert(dto); } }
public void Add(FolderDTO dto) { File.WriteAllText(User.Folder + "\\" + GetMaxId() + ".fd", dto.Name + "¨" + dto.ParentId + "¨" + User.Id); }
public void Delete(FolderDTO dto) { File.Delete(User.Folder + "\\" + dto.Id + ".fd"); }
public void Save(FolderDTO dto) { File.WriteAllText(User.Folder + "\\" + dto.Id + ".fd", dto.Name + "¨" + dto.ParentId + "¨" + dto.ParentId + "¨" + User.Id); }