Skip to content

Instantly share code, notes, and snippets.

View scorpio-angel's full-sized avatar
🏠
Working from home

Michal Bezecný scorpio-angel

🏠
Working from home
View GitHub Profile
@scorpio-angel
scorpio-angel / AuthorizationController.cs
Created December 14, 2018 12:45 — forked from foyzulkarim/AuthorizationController.cs
Role-Based-Access-Control Authorization Logic based on ASP.NET Identity and System.Runtime.Caching.MemoryCache
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Net.Http;
using System.Runtime.Caching;
using System.Web.Http;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
@scorpio-angel
scorpio-angel / JsonNetRestSharp.cs
Created June 25, 2019 08:47 — forked from alexeyzimarev/JsonNetRestSharp.cs
Using Newtonsoft.Json with RestSharp v106.6
using Newtonsoft.Json;
using RestSharp;
using RestSharp.Serialization;
namespace JsonNetRestSharp
{
class Program
{
static void Main(string[] args)
{