Beispiel #1
0
        public async Task <IHttpActionResult> GetOffices()
        {
            var offices = await _officeMapService.GetOfficesAsync();

            var result = _mapper.Map <IEnumerable <OfficeDto>, IEnumerable <EventOfficeViewModel> >(offices);

            return(Ok(result));
        }