Skip to content

Commit

Permalink
Update ConfigureServiceContainer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Amitpnk committed Jul 4, 2020
1 parent dfbb5a7 commit e0ef262
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static void AddMailSetting(this IServiceCollection serviceCollection,
serviceCollection.Configure<MailSettings>(configuration.GetSection("MailSettings"));
}

public static void AddNewtonJson(this IServiceCollection serviceCollection)
public static void AddController(this IServiceCollection serviceCollection)
{
serviceCollection.AddControllers().AddNewtonsoftJson();
}
Expand Down

0 comments on commit e0ef262

Please sign in to comment.