GetAllStocks()
22 | {
23 | return _stockTicker.GetAllStocks();
24 | }
25 |
26 | public string GetMarketState()
27 | {
28 | return _stockTicker.MarketState.ToString();
29 | }
30 |
31 | public void OpenMarket()
32 | {
33 | _stockTicker.OpenMarket();
34 | }
35 |
36 | public void CloseMarket()
37 | {
38 | _stockTicker.CloseMarket();
39 | }
40 |
41 | public void Reset()
42 | {
43 | _stockTicker.Reset();
44 | }
45 | }
46 | }
--------------------------------------------------------------------------------
/src/StartR.Web/Views/Client/Create.cshtml:
--------------------------------------------------------------------------------
1 | @model StartR.Domain.Client
2 |
3 | @{
4 | ViewBag.Title = "Create";
5 | }
6 |
7 | Create
8 |
9 | @using (Html.BeginForm()) {
10 | @Html.AntiForgeryToken()
11 | @Html.ValidationSummary(true)
12 |
13 |
76 | }
77 |
78 |
81 |
82 | @section Scripts {
83 |
84 | @Scripts.Render("~/bundles/jqueryval")
85 |
86 |
115 |
116 | }
117 |
--------------------------------------------------------------------------------
/src/StartR.Web/Views/Client/Details.cshtml:
--------------------------------------------------------------------------------
1 | @model StartR.Domain.Client
2 | @{
3 | ViewBag.Title = "Details";
4 | }
5 | Details
6 |
7 | Getting qualification info...
8 |
9 | @Html.DisplayFor(model => model.FirstName) @Html.DisplayFor(model => model.LastName)
10 | @Html.DisplayFor(model => model.Address1)
11 | @if (@Model.Address2 != null)
12 | {
13 | @Html.DisplayFor(model => model.Address2)
14 | }
15 | @Html.DisplayFor(model => model.City), @Html.DisplayFor(model => model.State)
16 | @Html.DisplayFor(model => model.Zip)
17 | Edit | Back to List
18 | @section scripts
19 | {
20 |
21 |
22 |
23 |
29 | }
--------------------------------------------------------------------------------
/src/StartR.Web/Views/Client/Edit.cshtml:
--------------------------------------------------------------------------------
1 | @model StartR.Domain.Client
2 |
3 | @{
4 | ViewBag.Title = "Edit";
5 | }
6 |
7 | Edit
8 |
9 | @using (Html.BeginForm()) {
10 | @Html.AntiForgeryToken()
11 | @Html.ValidationSummary(true)
12 |
13 |
94 | }
95 |
96 |
97 | @Html.ActionLink("Back to List", "Index")
98 |
99 |
100 | @section Scripts {
101 | @Scripts.Render("~/bundles/jqueryval")
102 | }
103 |
--------------------------------------------------------------------------------
/src/StartR.Web/Views/Home/About.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "About";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 | @ViewBag.Message
8 |
9 |
10 |
11 |
12 | Use this area to provide additional information.
13 |
14 |
15 |
16 | Use this area to provide additional information.
17 |
18 |
19 |
20 | Use this area to provide additional information.
21 |
22 |
23 |
24 |
35 | @section scripts
36 | {
37 |
41 | }
--------------------------------------------------------------------------------
/src/StartR.Web/Views/Home/Contact.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Contact";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 | @ViewBag.Message
8 |
9 |
10 |
23 |
24 |
41 |
42 |
--------------------------------------------------------------------------------
/src/StartR.Web/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 | @model IEnumerable
2 |
3 | @{
4 | ViewBag.Title = "S.t.a.r.t.R";
5 | }
6 |
7 |
8 |
Clients
9 |
10 |
11 |
Create New
12 |
13 | Loading content...
14 |
15 |
16 |
17 |
18 | @section scripts
19 | {
20 |
34 | }
--------------------------------------------------------------------------------
/src/StartR.Web/Views/Shared/Error.cshtml:
--------------------------------------------------------------------------------
1 | @model System.Web.Mvc.HandleErrorInfo
2 |
3 | @{
4 | ViewBag.Title = "Error";
5 | }
6 |
7 |
8 | Error.
9 | An error occurred while processing your request.
10 |
11 |
--------------------------------------------------------------------------------
/src/StartR.Web/Views/Shared/_Layout.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | @ViewBag.Title - My ASP.NET MVC Application
6 |
7 |
8 | @Styles.Render("~/Content/css")
9 |
10 | @Scripts.Render("~/bundles/modernizr")
11 |
12 |
13 |
14 |
15 |
23 |
24 |
28 |
29 | Hello, @User.Identity.Name!
30 |
31 |
32 |
33 |
34 |
35 | @RenderSection("featured", required: false)
36 |
39 |
40 |
47 |
48 | @Scripts.Render("~/bundles/jquery")
49 | @RenderSection("scripts", required: false)
50 |
51 |
52 |
--------------------------------------------------------------------------------
/src/StartR.Web/Views/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
40 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/src/StartR.Web/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
--------------------------------------------------------------------------------
/src/StartR.Web/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
--------------------------------------------------------------------------------
/src/StartR.Web/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
--------------------------------------------------------------------------------
/src/StartR.Web/docs/css/hightlight.default.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Original style from softwaremaniacs.org (c) Ivan Sagalaev
4 |
5 | */
6 |
7 | pre code {
8 | display: block; padding: 0.5em;
9 | background: #F0F0F0;
10 | }
11 |
12 | pre code,
13 | pre .subst,
14 | pre .tag .title,
15 | pre .lisp .title,
16 | pre .clojure .built_in,
17 | pre .nginx .title {
18 | color: black;
19 | }
20 |
21 | pre .string,
22 | pre .title,
23 | pre .constant,
24 | pre .parent,
25 | pre .tag .value,
26 | pre .rules .value,
27 | pre .rules .value .number,
28 | pre .preprocessor,
29 | pre .ruby .symbol,
30 | pre .ruby .symbol .string,
31 | pre .aggregate,
32 | pre .template_tag,
33 | pre .django .variable,
34 | pre .smalltalk .class,
35 | pre .addition,
36 | pre .flow,
37 | pre .stream,
38 | pre .bash .variable,
39 | pre .apache .tag,
40 | pre .apache .cbracket,
41 | pre .tex .command,
42 | pre .tex .special,
43 | pre .erlang_repl .function_or_atom,
44 | pre .markdown .header {
45 | color: #800;
46 | }
47 |
48 | pre .comment,
49 | pre .annotation,
50 | pre .template_comment,
51 | pre .diff .header,
52 | pre .chunk,
53 | pre .markdown .blockquote {
54 | color: #888;
55 | }
56 |
57 | pre .number,
58 | pre .date,
59 | pre .regexp,
60 | pre .literal,
61 | pre .smalltalk .symbol,
62 | pre .smalltalk .char,
63 | pre .go .constant,
64 | pre .change,
65 | pre .markdown .bullet,
66 | pre .markdown .link_url {
67 | color: #080;
68 | }
69 |
70 | pre .label,
71 | pre .javadoc,
72 | pre .ruby .string,
73 | pre .decorator,
74 | pre .filter .argument,
75 | pre .localvars,
76 | pre .array,
77 | pre .attr_selector,
78 | pre .important,
79 | pre .pseudo,
80 | pre .pi,
81 | pre .doctype,
82 | pre .deletion,
83 | pre .envvar,
84 | pre .shebang,
85 | pre .apache .sqbracket,
86 | pre .nginx .built_in,
87 | pre .tex .formula,
88 | pre .erlang_repl .reserved,
89 | pre .prompt,
90 | pre .markdown .link_label,
91 | pre .vhdl .attribute,
92 | pre .clojure .attribute,
93 | pre .coffeescript .property {
94 | color: #88F
95 | }
96 |
97 | pre .keyword,
98 | pre .id,
99 | pre .phpdoc,
100 | pre .title,
101 | pre .built_in,
102 | pre .aggregate,
103 | pre .css .tag,
104 | pre .javadoctag,
105 | pre .phpdoc,
106 | pre .yardoctag,
107 | pre .smalltalk .class,
108 | pre .winutils,
109 | pre .bash .variable,
110 | pre .apache .tag,
111 | pre .go .typename,
112 | pre .tex .command,
113 | pre .markdown .strong,
114 | pre .request,
115 | pre .status {
116 | font-weight: bold;
117 | }
118 |
119 | pre .markdown .emphasis {
120 | font-style: italic;
121 | }
122 |
123 | pre .nginx .built_in {
124 | font-weight: normal;
125 | }
126 |
127 | pre .coffeescript .javascript,
128 | pre .javascript .xml,
129 | pre .tex .formula,
130 | pre .xml .javascript,
131 | pre .xml .vbscript,
132 | pre .xml .css,
133 | pre .xml .cdata {
134 | opacity: 0.5;
135 | }
136 |
--------------------------------------------------------------------------------
/src/StartR.Web/docs/default.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | StartR - Swagger UI
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/src/StartR.Web/docs/images/logo_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keithelder/StartR/a68f6a748dfc7b35c665cc24f565b31c839688a4/src/StartR.Web/docs/images/logo_small.png
--------------------------------------------------------------------------------
/src/StartR.Web/docs/images/pet_store_api.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keithelder/StartR/a68f6a748dfc7b35c665cc24f565b31c839688a4/src/StartR.Web/docs/images/pet_store_api.png
--------------------------------------------------------------------------------
/src/StartR.Web/docs/images/throbber.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keithelder/StartR/a68f6a748dfc7b35c665cc24f565b31c839688a4/src/StartR.Web/docs/images/throbber.gif
--------------------------------------------------------------------------------
/src/StartR.Web/docs/images/wordnik_api.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keithelder/StartR/a68f6a748dfc7b35c665cc24f565b31c839688a4/src/StartR.Web/docs/images/wordnik_api.png
--------------------------------------------------------------------------------
/src/StartR.Web/docs/lib/jquery.ba-bbq.min.js:
--------------------------------------------------------------------------------
1 | /*
2 | * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
3 | * http://benalman.com/projects/jquery-bbq-plugin/
4 | *
5 | * Copyright (c) 2010 "Cowboy" Ben Alman
6 | * Dual licensed under the MIT and GPL licenses.
7 | * http://benalman.com/about/license/
8 | */
9 | (function($,p){var i,m=Array.prototype.slice,r=decodeURIComponent,a=$.param,c,l,v,b=$.bbq=$.bbq||{},q,u,j,e=$.event.special,d="hashchange",A="querystring",D="fragment",y="elemUrlAttr",g="location",k="href",t="src",x=/^.*\?|#.*$/g,w=/^.*\#/,h,C={};function E(F){return typeof F==="string"}function B(G){var F=m.call(arguments,1);return function(){return G.apply(this,F.concat(m.call(arguments)))}}function n(F){return F.replace(/^[^#]*#?(.*)$/,"$1")}function o(F){return F.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(H,M,F,I,G){var O,L,K,N,J;if(I!==i){K=F.match(H?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);J=K[3]||"";if(G===2&&E(I)){L=I.replace(H?w:x,"")}else{N=l(K[2]);I=E(I)?l[H?D:A](I):I;L=G===2?I:G===1?$.extend({},I,N):$.extend({},N,I);L=a(L);if(H){L=L.replace(h,r)}}O=K[1]+(H?"#":L||!K[1]?"?":"")+L+J}else{O=M(F!==i?F:p[g][k])}return O}a[A]=B(f,0,o);a[D]=c=B(f,1,n);c.noEscape=function(G){G=G||"";var F=$.map(G.split(""),encodeURIComponent);h=new RegExp(F.join("|"),"g")};c.noEscape(",/");$.deparam=l=function(I,F){var H={},G={"true":!0,"false":!1,"null":null};$.each(I.replace(/\+/g," ").split("&"),function(L,Q){var K=Q.split("="),P=r(K[0]),J,O=H,M=0,R=P.split("]["),N=R.length-1;if(/\[/.test(R[0])&&/\]$/.test(R[N])){R[N]=R[N].replace(/\]$/,"");R=R.shift().split("[").concat(R);N=R.length-1}else{N=0}if(K.length===2){J=r(K[1]);if(F){J=J&&!isNaN(J)?+J:J==="undefined"?i:G[J]!==i?G[J]:J}if(N){for(;M<=N;M++){P=R[M]===""?O.length:R[M];O=O[P]=M').hide().insertAfter("body")[0].contentWindow;q=function(){return a(n.document[c][l])};o=function(u,s){if(u!==s){var t=n.document;t.open().close();t[c].hash="#"+u}};o(a())}}m.start=function(){if(r){return}var t=a();o||p();(function s(){var v=a(),u=q(t);if(v!==t){o(t=v,u);$(i).trigger(d)}else{if(u!==t){i[c][l]=i[c][l].replace(/#.*/,"")+"#"+u}}r=setTimeout(s,$[d+"Delay"])})()};m.stop=function(){if(!n){r&&clearTimeout(r);r=0}};return m})()})(jQuery,this);
--------------------------------------------------------------------------------
/src/StartR.Web/docs/lib/jquery.slideto.min.js:
--------------------------------------------------------------------------------
1 | (function(b){b.fn.slideto=function(a){a=b.extend({slide_duration:"slow",highlight_duration:3E3,highlight:true,highlight_color:"#FFFF99"},a);return this.each(function(){obj=b(this);b("body").animate({scrollTop:obj.offset().top},a.slide_duration,function(){a.highlight&&b.ui.version&&obj.effect("highlight",{color:a.highlight_color},a.highlight_duration)})})}})(jQuery);
2 |
--------------------------------------------------------------------------------
/src/StartR.Web/docs/lib/jquery.wiggle.min.js:
--------------------------------------------------------------------------------
1 | /*
2 | jQuery Wiggle
3 | Author: WonderGroup, Jordan Thomas
4 | URL: http://labs.wondergroup.com/demos/mini-ui/index.html
5 | License: MIT (http://en.wikipedia.org/wiki/MIT_License)
6 | */
7 | jQuery.fn.wiggle=function(o){var d={speed:50,wiggles:3,travel:5,callback:null};var o=jQuery.extend(d,o);return this.each(function(){var cache=this;var wrap=jQuery(this).wrap('').css("position","relative");var calls=0;for(i=1;i<=o.wiggles;i++){jQuery(this).animate({left:"-="+o.travel},o.speed).animate({left:"+="+o.travel*2},o.speed*2).animate({left:"-="+o.travel},o.speed,function(){calls++;if(jQuery(cache).parent().hasClass('wiggle-wrap')){jQuery(cache).parent().replaceWith(cache);}
8 | if(calls==o.wiggles&&jQuery.isFunction(o.callback)){o.callback();}});}});};
--------------------------------------------------------------------------------
/src/StartR.Web/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/keithelder/StartR/a68f6a748dfc7b35c665cc24f565b31c839688a4/src/StartR.Web/favicon.ico
--------------------------------------------------------------------------------
/src/StartR.Web/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------