Exemple #1
0
        public static RestitutionData GetFullProjectDetails(this IAnalyzeService service, int projectId)
        {
            var operation = new AsyncServiceOperation <RestitutionData>();

            service.GetFullProjectDetails(projectId, operation.OnDone, operation.OnError);

            return(operation.WaitCompletion());
        }
Exemple #2
0
 public async Task <IHttpActionResult> GetFullProjectDetails([DynamicBody] dynamic param)
 {
     try
     {
         int projectId = (int)param.projectId;
         return(Ok(await _analyzeService.GetFullProjectDetails(projectId)));
     }
     catch (Exception ex)
     {
         _traceManager.TraceError(ex, ex.Message);
         return(InternalServerError(ex));
     }
 }