/// <summary>
        /// Get All users.
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        public IEnumerable<CustomerAPI> GetAllUsers()
        {
            var users = _dynamoDataService.GetAll<CustomerAPI>().ToList();
            if (users.Any())
            {
                // Mapper.CreateMap<hmis_user_base, hmisUserBase>();
                Mapper.Reset();
                Mapper.Initialize(cfg =>
                {
                    cfg.CreateMap<Customer, CustomerAPI>();

                });
                // var userModel = Mapper.Map<List<Customer>, List<CustomerAPI>>(users);
                return users;
            }
            return null;
        }
Exemplo n.º 2
0
 /// <summary>
 /// GetALllSamples will perform a Table Scan operation to return all the Samples
 /// </summary>
 /// <returns></returns>
 public IEnumerable <Sample> GetAllSamples()
 {
     return(_dynamoService.GetAll <Sample>());
 }
Exemplo n.º 3
0
 /// <summary>
 /// GetALllDvds will perform a Table Scan operation to return all the DVDs
 /// </summary>
 /// <returns></returns>
 public IEnumerable <DVD> GetAllDvds()
 {
     return(_dynamoService.GetAll <DVD>());
 }
 public IEnumerable <Reservation> GetAllRes()
 {
     return(_dynamoService.GetAll <Reservation>());
 }