public adduohelper.ResponseEnvelope <dto.Usuario> Response(proto.UsuarioResponse message) { var response = new adduohelper.ResponseEnvelope <dto.Usuario> { HttpStatusCode = (HttpStatusCode)message.HttpStatusCode }; if (response.Success) { response.Item = base.Response(message.Usuario); } return(response); }
public proto.UsuarioResponse Response(adduohelper.ResponseEnvelope <dto.Usuario> envelope) { var response = new proto.UsuarioResponse { HttpStatusCode = (int)envelope.HttpStatusCode }; if (envelope.Success) { response.Usuario = base.Response(envelope.Item); } return(response); }
public adduohelper.ResponseEnvelope <List <dto.Usuario> > Response(proto.UsuarioResponse message) { var response = new adduohelper.ResponseEnvelope <List <dto.Usuario> > { HttpStatusCode = (HttpStatusCode)message.HttpStatusCode }; if (response.Success) { foreach (var usuario in message.Usuarios) { response.Item.Add(base.Response(usuario)); } } return(response); }