Пример #1
0
 public async Task <List <PartColorDTO> > PartColors(string itemId)
 {
     try
     {
         return(await _partService.PartColors(itemId));
     }
     catch (System.Exception ex)
     {
         Response.StatusCode = 500;
         Console.WriteLine("PartColors error:" + ex.Message);
         //Console.WriteLine(ex.StackTrace);
         return(new List <PartColorDTO>());
     }
 }