private SightingService CreateSightingService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new SightingService(userId); return(service); }
// 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(); }