internal CommonApiEndpointBase(ApiContext context, string endpointName, Func <TInterface, int> getId) { _context = context ?? throw new ArgumentNullException(nameof(context)); _name = endpointName ?? throw new ArgumentNullException(nameof(endpointName)); if (string.IsNullOrEmpty(_name)) { throw new ArgumentException("Cannot be blank.", nameof(endpointName)); } _getId = getId ?? throw new ArgumentNullException(nameof(getId)); }
internal CustomValueApiEndpoint(ApiContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); _name = "customvalues"; }