Skip to content

Instantly share code, notes, and snippets.

View ayeshN's full-sized avatar
🤡
Why So Serious ?

Ayesh Nipun ayeshN

🤡
Why So Serious ?
View GitHub Profile
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddCors(options =>
{
options.AddPolicy(
"CorsPolicy",
builder => builder.AllowAnyOrigin()
.AllowAnyMethod()
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using B2CUserManagement.Interfaces;
using B2CUserManagement.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace B2CUserManagement.Controllers
using B2CUserManagement.Interfaces;
using B2CUserManagement.Models;
using Microsoft.Extensions.Options;
using Microsoft.Graph;
using Microsoft.Graph.Auth;
using Microsoft.Identity.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using B2CUserManagement.Models;
using Microsoft.Graph;
using System.Threading.Tasks;
namespace B2CUserManagement.Interfaces
{
public interface IUserManager
{
Task CreateUser(B2CUser user);
using B2CUserManagement.Models;
using System.Threading.Tasks;
namespace B2CUserManagement.Interfaces
{
public interface IUserManager
{
Task CreateUser(B2CUser user);