Ejemplo n.º 1
0
 public async Task <ActionResult <Response> > Get(int id)
 {
     try
     {
         var deltaList = new List <ProjectDto> {
             await _projectService.GetProjectByIdAsync(id)
         };
         return(Ok(new Response
         {
             Success = true,
             Data = new ResponseData {
                 ProjectModels = deltaList
             }
         }));
     }
     catch (Exception e)
     {
         return(BadRequest(new Response {
             Success = false, ErrorMessage = e.Message
         }));
     }
 }