Esempio n. 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ApiBaseController()
        {
            //Inicializa instancia de Mapper
            mapper = AutoMapperConfig.Instance.MapperConfiguration.CreateMapper();

            userSvc      = IoC.Resolve <UserSvc>();
            userGroupSvc = IoC.Resolve <UserGroupSvc>();
            userRoleSvc  = IoC.Resolve <UserRoleSvc>();
            newsSvc      = IoC.Resolve <NewsSvc>();
            newsSentSvc  = IoC.Resolve <NewsSentSvc>();
        }
 public NewsController()
 {
     _svc = new NewsSvc();
 }