public async Task <ActionResult <IEnumerable <AcUserInfoDto> > > GetUserInfoById(int id) { MessageModel <AcUserInfoDto> res = new MessageModel <AcUserInfoDto>(); if (!await _acUserInfoServices.ExistEntityAsync(a => a.Id == id)) { return(NotFound(StyleCode.NotFound(res))); } AcUserInfo entity = await _acUserInfoServices.GetEntityByIdAsync(id); res.Data = _mapper.Map <AcUserInfoDto>(entity); return(Ok(res)); }