Beispiel #1
0
        public IActionResult GetSpace(int id)
        {
            var space = _spaceService.GetSpace(id);
            var model = _mapper.Map <Space>(space);

            return(Ok(model));
        }
 //[AutoMap(typeof(Space), typeof(SpaceOverviewViewModel))]
 public ActionResult Index()
 {
     return(View(_spaceService.GetSpace(User.Identity.GetUserId())));
 }