Beispiel #1
0
        public ResourceDirectory AddResourceDirectory(ResourceDirectory resource)
        {
            ResourceDirectory target = _context.ResourceDirectories.Add(resource).Entity;

            _context.SaveChanges();

            return(target);
        }
Beispiel #2
0
 public void DeleteWorkspace(int id)
 {
     _context.Workspaces.Remove(GetWorkspace(id));
     _context.SaveChanges();
 }