Skip to content

Instantly share code, notes, and snippets.

View fileman's full-sized avatar

Emanuele Filardo fileman

View GitHub Profile
@fileman
fileman / MyApi.cs
Created March 19, 2017 16:10
RESTier Soft Delete
public partial class MyApi : EntityFrameworkApi<MyContext>
{
//Other code
public static new IServiceCollection ConfigureApi(Type apiType, IServiceCollection services)
{
return EntityFrameworkApi<MyContext>.ConfigureApi(apiType, services)
.AddService<ISubmitExecutor, SoftDeleteSubmitExecutor>();
}
}