Exemple #1
0
        public IActionResult GetOneProject(string id)
        {
            if (id == null || id == "")
            {
                return(new BadRequestObjectResult(new { message = "Please provide a valid project id" }));
            }

            Guid guid_id = Guid.Parse(id);

            return(new OkObjectResult(projectRepo.GetOneProject(guid_id)));
        }
 public IActionResult GetOneProject(int id)
 {
     return(new OkObjectResult(projectRepo.GetOneProject(id)));
 }