Esempio n. 1
0
 public void Save(FolderDTO dto)
 {
     using (var connection = new SqlConnection(_ConnectionString))
     {
         connection.Update(dto);
     }
 }
Esempio n. 2
0
 public void Delete(FolderDTO dto)
 {
     using (var connection = new SqlConnection(_ConnectionString))
     {
         connection.Delete(dto);
     }
 }
Esempio n. 3
0
 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);
 }