Popcorn > Quick Start > DotNet
There are two methods to get the code into your solution:
- Check out the project from GitHub. Add the PopcornNetStandard and PopcornNetStandard.WebApiCore projects to your solution, and add references to them as needed.
- (Preferred) Nuget! Open up your package manager console and type in
Install-Package Skyward.Api.Popcorn
and repeat for the Skyward.Api.Popcorn.WebApiCore package and others as desired.
Now that the project is available, you can quickly get up and running by configuring the MvcOptions in your UseMvc call.
services.AddMvc((mvcOptions) =>
{
mvcOptions.UsePopcorn((popcornConfig) => {
popcornConfig
.Map<*SourceType*, *DestinationType*>()
*...Repeat...*;
});
});