File tree 3 files changed +12
-8
lines changed
3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
< div class ="jumbotron ">
2
- < h1 > ASP.NET</ h1 >
3
- < p class ="lead "> ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</ p >
4
- < p > < a href ="http://asp.net " class ="btn btn-primary btn-lg "> Learn more »</ a > </ p >
5
- < p ng-cloak ng-show ="isConnected "> Connected AS : {{name}}</ p >
6
- {{users}}
2
+ < h1 > Zenergy</ h1 >
3
+ < p class ="lead "> Welcome on our website. Here you can manage your account, subscribe to the club and to events. You can also visit our shop to buy some items </ p >
4
+ < p > < a ng-hide ="isAuthanticated() " href ="#Register " class ="btn btn-primary btn-lg "> Try it</ a > </ p >
7
5
</ div >
Original file line number Diff line number Diff line change 32
32
newCC . userId = tokenService . getUserId ( ) ;
33
33
newCC . productId = p . productId ;
34
34
newCC . productQuantity = 1 ;
35
- newCC . $save ( { userId : tokenService . getUserId ( ) } ) ;
35
+ newCC . $save ( { userId : tokenService . getUserId ( ) } ,
36
+ function ( response ) {
37
+ bootbox . alert ( "Item added in your cart" ) ;
38
+ } , function ( response ) {
39
+ bootbox . alert ( "Item already in your cart" ) ;
40
+ }
41
+ ) ;
36
42
}
37
43
38
44
}
Original file line number Diff line number Diff line change 11
11
<connectionStrings >
12
12
<add name =" DefaultConnection" connectionString =" Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-Zenergy-20151109023115.mdf;Initial Catalog=aspnet-Zenergy-20151109023115;Integrated Security=True" providerName =" System.Data.SqlClient" />
13
13
<!-- prod-->
14
- <!-- < add name="ZenergyContext" connectionString="metadata=res://*/Models.ZenergyModel.csdl|res://*/Models.ZenergyModel.ssdl|res://*/Models.ZenergyModel.msl;provider=System.Data.SqlClient;provider connection string="data source=zenergy.cb9xv2w6phgt.us-west-2.rds.amazonaws.com;initial catalog=zenergy;persist security info=True;user id=admin;password=zenergy1;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> -- >
14
+ <add name =" ZenergyContext" connectionString =" metadata=res://*/Models.ZenergyModel.csdl|res://*/Models.ZenergyModel.ssdl|res://*/Models.ZenergyModel.msl;provider=System.Data.SqlClient;provider connection string=" data source=zenergy.cb9xv2w6phgt.us-west-2.rds.amazonaws.com;initial catalog=zenergy;persist security info=True;user id=admin;password=zenergy1;MultipleActiveResultSets=True;App=EntityFramework" " providerName =" System.Data.EntityClient" />
15
15
16
16
<!-- test-->
17
- <add name =" ZenergyContext" connectionString =" metadata=res://*/Models.ZenergyModel.csdl|res://*/Models.ZenergyModel.ssdl|res://*/Models.ZenergyModel.msl;provider=System.Data.SqlClient;provider connection string=" data source=zenergy.cb9xv2w6phgt.us-west-2.rds.amazonaws.com;initial catalog=zenergyTest2;persist security info=True;user id=admin;password=zenergy1;MultipleActiveResultSets=True;App=EntityFramework" " providerName =" System.Data.EntityClient" />
17
+ <!-- < add name="ZenergyContext" connectionString="metadata=res://*/Models.ZenergyModel.csdl|res://*/Models.ZenergyModel.ssdl|res://*/Models.ZenergyModel.msl;provider=System.Data.SqlClient;provider connection string="data source=zenergy.cb9xv2w6phgt.us-west-2.rds.amazonaws.com;initial catalog=zenergyTest2;persist security info=True;user id=admin;password=zenergy1;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> -- >
18
18
19
19
</connectionStrings >
20
20
<appSettings ></appSettings >
You can’t perform that action at this time.
0 commit comments