public async Task <Response <IList <UserModel> > > FindAsync(Expression <Func <UserModel, bool> > predicate) { var response = new Response <IList <UserModel> >(); try { var user = await _userModelDomain.FindAsync(c => c.UserName == "string"); var userList = _mapper.Map <IList <UserModel> >(user); response.Data = userList; if (response.Data != null) { response.IsSuccess = true; response.Message = "Consulta Exitosa!!!"; } } catch (Exception e) { response.Message = e.Message + "--> InnerException.Message-->" + (e.InnerException != null ? e.InnerException.Message : ""); _logger.LogError(response.Message); } return(response); }