Exemplo n.º 1
0
 /// <summary>
 /// GS1 Utility class
 /// </summary>
 public Gs1Util()
 {
     this.m_actRepository      = ApplicationContext.Current.GetService <IActRepositoryService>();
     this.m_materialRepository = ApplicationContext.Current.GetService <IMaterialRepositoryService>();
     this.m_placeRepository    = ApplicationContext.Current.GetService <IPlaceRepositoryService>();
     this.m_stockService       = ApplicationContext.Current.GetService <IStockManagementRepositoryService>();
 }
Exemplo n.º 2
0
        public Act CreateAct([RestMessage(RestMessageFormat.SimpleJson)] Act actToInsert)
        {
            IActRepositoryService actService = ApplicationContext.Current.GetService <IActRepositoryService>();

            return(actService.Insert(actToInsert));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ImmunizationRecommendationResourceHandler"/> class.
 /// </summary>
 public ImmunizationRecommendationResourceHandler()
 {
     ApplicationContext.Current.Started += (o, e) => this.repository = ApplicationContext.Current.GetService <IActRepositoryService>();
 }