示例#1
0
        public async Task <IActionResult> DeleteTelephone(long id)
        {
            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.DeleteTelphone(Convert.ToInt64(userId), id, fullname)));
        }