Exemplo n.º 1
0
        public async Task <Location> AddLocation(Location location)
        {
            Location dbLocation = Mapper.Map <Location, Location>(location);

            return(Mapper.Map <Location, Location>(await _locationsRepository.AddItemAsync(dbLocation)));
        }