public NewNameRoute() : base(RouteRegistration.CreateRouteHandler(WebConfig.IsDeployedToCloud)) { Url = "establishments/new/name"; DataTokens = RouteRegistration.CreateDataTokens(Area, typeof(EstablishmentsAreaRegistration)); Defaults = new RouteValueDictionary(new { controller = Controller, action = MVC.Establishments.ManagementForms.ActionNames.NewName, }); Constraints = new RouteValueDictionary(new { httpMethod = new HttpMethodConstraint("GET"), }); }
public DeliverQaMailRoute() : base(RouteRegistration.CreateRouteHandler(WebConfig.IsDeployedToCloud)) { Url = "qa/deliver-mail"; DataTokens = new RouteValueDictionary(new { area = Area }); Defaults = new RouteValueDictionary(new { controller = Controller, action = MVC.Common.Qa.ActionNames.DeliverQaMail, }); Constraints = new RouteValueDictionary(new { httpMethod = new HttpMethodConstraint("GET"), }); }
public PutRoute() : base(RouteRegistration.CreateRouteHandler(WebConfig.IsDeployedToCloud)) { Url = "establishments/{entityId}"; DataTokens = RouteRegistration.CreateDataTokens(Area, typeof(EstablishmentsAreaRegistration)); Defaults = new RouteValueDictionary(new { controller = Controller, action = MVC.Establishments.ManagementForms.ActionNames.Put, }); Constraints = new RouteValueDictionary(new { httpMethod = new HttpMethodConstraint("PUT", "POST"), entityId = new NonEmptyGuidRouteConstraint(), }); }