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
public enum FeatureInputType | |
{ | |
CheckBox = 1, | |
Number = 2, | |
DropDownList = 3 | |
} | |
public class Feature : Entity | |
{ | |
public string Name { get; set; } |
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
public abstract class Entity | |
{ | |
public long Id { get; set; } | |
[SuppressMessage("ReSharper", "BaseObjectGetHashCodeCallInGetHashCode")] | |
[SuppressMessage("ReSharper", "NonReadonlyMemberInGetHashCode")] | |
public override int GetHashCode() | |
{ | |
if (IsTransient()) | |
return base.GetHashCode(); |
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
public class CustomerController : Controller | |
{ | |
public ViewResult Index() | |
{ | |
return View(); | |
} | |
public ViewResult Edit() | |
{ | |
var existingCustomer = new Customer(); |