This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Security.Cryptography; | |
using System.Web; | |
namespace DevPartners | |
{ | |
// author: Bill Wilder, @codingoutloud | |
// original: https://gist.github.com/4200537 | |
public static class RandomTokenGenerator | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Web.Mvc; | |
public abstract class BaseController : Controller | |
{ | |
protected override JsonResult Json(object data, string contentType, System.Text.Encoding contentEncoding) | |
{ | |
return new JsonNetResult | |
{ |