You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Security/Membership/IMembershipService.cs

26 lines
768 B

2 years ago
using System.Collections.Immutable;
using Connected.Annotations;
using Connected.ServiceModel;
namespace Connected.Security.Membership;
[Service]
[ServiceUrl(SecurityRoutes.Membership)]
public interface IMembershipService
{
[ServiceMethod(ServiceMethodVerbs.Get)]
Task<ImmutableList<IMembership>?> Query();
[ServiceMethod(ServiceMethodVerbs.Get | ServiceMethodVerbs.Post)]
Task<ImmutableList<IMembership>?> Query(MembershipQueryArgs args);
[ServiceMethod(ServiceMethodVerbs.Get | ServiceMethodVerbs.Post)]
Task<IMembership?> Select(PrimaryKeyArgs<int> args);
[ServiceMethod(ServiceMethodVerbs.Post)]
Task<int> Insert(MembershipArgs args);
[ServiceMethod(ServiceMethodVerbs.Post | ServiceMethodVerbs.Delete)]
Task Delete(PrimaryKeyArgs<int> args);
}