/Passbook.Sample.Web/Controllers/UpdateController.cs

https://github.com/Comezon/dotnet-passbook · C# · 25 lines · 23 code · 2 blank · 0 comment · 0 complexity · 352f3c49c8f5b2bc902a4ccf55a16abf MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using WhereAreMyStaff.Services.Mobile;
  7. namespace Passbook.Sample.Web.Controllers
  8. {
  9. public class UpdateController : Controller
  10. {
  11. public ActionResult Index()
  12. {
  13. return View();
  14. }
  15. [HttpPost]
  16. public ActionResult Index(string deviceIdentifier)
  17. {
  18. iPhoneMobileNotificationService service = new iPhoneMobileNotificationService();
  19. service.SendEmptyPushNotification(deviceIdentifier, "B21B3785CBA2360A7B51635B82A4B4F5C3534AFA");
  20. return View();
  21. }
  22. }
  23. }