예제 #1
0
 public IActionResult GetProjectByIDProjectType(int id)
 {
     try
     {
         var projectTypesFromRepo = _services.GetProjectByIDProjectType(id);
         if (projectTypesFromRepo == null)
         {
             return(BadRequest("Not a value project "));
         }
         var listMap = _mapper.Map <IEnumerable <ProjectsModel> >(projectTypesFromRepo);
         return(Ok(listMap));
     }
     catch
     {
         throw;
     }
 }