예제 #1
0
        public IHttpActionResult GetProfileInfo(UsernameAndPasswordDto userData)
        {
            var courier    = _courierService.GetCourierWithUsernameAndPassword(userData);
            var courierDto = courier.MapTo <CourierDto>();

            courierDto.IsSameImei = courier.Imei == userData.Imei;
            courierDto.Contacts   = _contactService.ListAll().OrderBy(o => o.Name).Select(o => o.MapTo <ContactDto>()).ToList();
            return(Ok(courierDto));
        }