Exemplo n.º 1
0
 public object Get(AssemblyMetadataDto request)
 {
     if (request.Id != null)
     {
         return(getById <AssemblyMetadataDto, AssemblyMetadata>(request.Id.Value));
     }
     else
     {
         return(getAll <AssemblyMetadataDto, AssemblyMetadata>(request));
     }
 }
Exemplo n.º 2
0
 public object Post(AssemblyMetadataDto request)
 {
     return(saveNewMetadata(request, new AssemblyMetadata().PopulateWith(request)));
 }
Exemplo n.º 3
0
 public object Delete(AssemblyMetadataDto request)
 {
     return(deleteMetadata <AssemblyMetadata>(request, "assembly"));
 }