示例#1
0
        public async Task <IActionResult> AddAssignedTelephone(AssignTelephoneDetailAC assignTelephoneDetailAC)
        {
            string userId   = HttpContext.User.Claims.FirstOrDefault(c => c.Type == "user_id").Value;
            string fullname = HttpContext.User.Claims.FirstOrDefault(c => c.Type == "fullname").Value;

            return(Ok(await _iTelephoneRepository.AddAssignedTelephone(Convert.ToInt64(userId), assignTelephoneDetailAC, fullname)));
        }