Ejemplo n.º 1
0
 public Dto.CommessaDto CreateCommessa(Dto.CommessaDto commessa)
 {
     try
     {
         var wcf = new EntitiesModelService();
         var dtoKey = wcf.CreateCommessa(commessa);
         var id = UtilityPOCO.GetId(dtoKey);
         var newCommessa = ReadCommessa(id);
         return newCommessa;
     }
     catch (Exception ex)
     {
         UtilityError.Write(ex);
     }
     return null;
 }