Skip to content

Instantly share code, notes, and snippets.

View rabbal's full-sized avatar
🏠
Working from home

Salar Rabbal rabbal

🏠
Working from home
View GitHub Profile
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Web;
using System.Web.Mvc;
namespace AppHarbor.Web.Mvc
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Web;
using System.Web.Mvc;
namespace AppHarbor.Web.Mvc
@rabbal
rabbal / CustomerController.cs
Last active September 12, 2015 00:36 — forked from mgroves/CustomerController.cs
Audit ActionFilter in ASP.NET MVC
public class CustomerController : Controller
{
public ViewResult Index()
{
return View();
}
public ViewResult Edit()
{
var existingCustomer = new Customer();
@rabbal
rabbal / DynamicPermissionManagementEntities.cs
Last active April 1, 2021 22:09
Domain Entities for Dynamic Permissions Management
public abstract class Entity
{
public long Id { get; set; }
[SuppressMessage("ReSharper", "BaseObjectGetHashCodeCallInGetHashCode")]
[SuppressMessage("ReSharper", "NonReadonlyMemberInGetHashCode")]
public override int GetHashCode()
{
if (IsTransient())
return base.GetHashCode();
@rabbal
rabbal / EditionManagementEntities.cs
Last active June 26, 2018 07:21
Domain Entities for License Management System
public enum FeatureInputType
{
CheckBox = 1,
Number = 2,
DropDownList = 3
}
public class Feature : Entity
{
public string Name { get; set; }