예제 #1
0
        public async Task <ActionResult> RetrievePersonnelAddress()
        {
            var userId    = User.Identity.GetUserId();
            var personnel = await _personnelBusinessService.RetrievePersonnel(User.Identity.GetUserId());

            if (personnel == null)
            {
                return(RedirectToAction("Login", "Account"));
            }
            var result = await _addressBusinessService.RetrieveAddresses(personnel.PersonnelId);

            return(this.JsonNet(result.ToList()));
        }