Esempio n. 1
0
        private SightingService CreateSightingService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new SightingService(userId);

            return(service);
        }
Esempio n. 2
0
        // GET: Sighting
        public ActionResult Index()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new SightingService(userId);
            var model   = service.GetSightings();

            return(View(model));
        }
 public SampleDataController()
 {
     log.Debug("SampleDataControllerissa  ollaan");
     _service = new SightingService();
 }