public static Services ConvertServicesToDal(ServicesWCF wcfServices) { Services service = new Services() { Name = wcfServices.Name, Price = wcfServices.Price, Id = wcfServices.Id, // Material=bllServices.BllMaterials }; return(service); }
public static ServicesWCF ConvertServicesToWCF(Services service) { ServicesWCF wcfServices = new ServicesWCF() { Name = service.Name, Price = service.Price, Id = service.Id, //BllMaterials= dTODalService.Id }; return(wcfServices); }