Browse files

Fixups

  • Loading branch information...
1 parent 2845ea2 commit c8d478d66412c4cede37dd3dfddead11ea569935 @devinrader committed Mar 22, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 MvcMusicStore/Controllers/SmsController.cs
  2. +1 −1 MvcMusicStore/Views/Checkout/Complete.cshtml
View
4 MvcMusicStore/Controllers/SmsController.cs
@@ -17,7 +17,7 @@ public class SmsController : TwilioController
public ActionResult Index(string Body)
{
- string[] parts = Body.Split(' ' );
+ string[] parts = Body.ToLower().Split(' ' );
if (parts.Count() != 2)
{
return new EmptyResult();
@@ -28,7 +28,7 @@ public ActionResult Index(string Body)
case "status" :
var response = new TwilioResponse();
- var order = db.Orders.Find(parts[1]);
+ var order = db.Orders.Find( int.Parse(parts[1]) );
if (order != null)
{
response.Sms(string.Format("The status of order '{0}' is: {1}", parts[1], order.Status));
View
2 MvcMusicStore/Views/Checkout/Complete.cshtml
@@ -8,7 +8,7 @@
<p>Thanks for your order! Your order number is: @Model</p>
-<p>Check the status of your order anytime texting '<span style="font-family:courier">status @Model</span>' to 555-555-5555</p>
+<p>Check the status of your order anytime texting '<span style="font-family:courier">status @Model</span>' to @System.Configuration.ConfigurationManager.AppSettings["PhoneNumber"]</p>
<p>How about shopping for some more music in our

0 comments on commit c8d478d

Please sign in to comment.