Add service reminder migration Add Completed Service button to vehicle

This commit is contained in:
2015-10-14 22:28:25 -04:00
parent 43d471af94
commit a6fb9d54c6
12 changed files with 246 additions and 0 deletions
@@ -0,0 +1,18 @@
using System.Reflection;
using System.Web.Mvc;
namespace MileageTraker.Web.Attributes
{
public class RequireRequestValueAttribute : ActionMethodSelectorAttribute
{
public RequireRequestValueAttribute(string valueName)
{
ValueName = valueName;
}
public override bool IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo)
{
return (controllerContext.HttpContext.Request[ValueName] != null);
}
public string ValueName { get; private set; }
}
}