// GET: Projects/Details/5
        public IActionResult Details(string id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var project = projectsService.Get(id, HttpContext.User);

            if (project == null)
            {
                return(NotFound());
            }

            return(View(project));
        }
Ejemplo n.º 2
0
 public async Task <IActionResult> GetProject(int id)
 {
     return(View("Project", await _projectService.Get(id)));
 }
Ejemplo n.º 3
0
 public async Task <IActionResult> Get(int id)
 {
     return(Ok(await _projectService.Get(id)));
 }
Ejemplo n.º 4
0
 public IActionResult Get()
 {
     return(new OkObjectResult(Mapper.Map <List <Project>, List <ProjectDTO> >(_service.Get())));
 }