Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 895 Bytes

DotNetQuickStart.md

File metadata and controls

20 lines (16 loc) · 895 Bytes

Popcorn > Quick Start > DotNet

Table Of Contents

There are two methods to get the code into your solution:

  1. Check out the project from GitHub. Add the PopcornNetStandard and PopcornNetStandard.WebApiCore projects to your solution, and add references to them as needed.
  2. (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...*;
		});
	});